Installing Vmware on Ubuntu - simple but too many questions!!
A hardcore windows fan and of lately OS Leopard fan I am used to clicking a series of buttons and selecting a number of checkboxes. I then expect the installer to go ahead and do the job. I today installed Vmware server 2.0 on my ubuntu box. I must say it was fairly easy to do so but too many questions to answer.
Thanks to the bauer-power article on how to install VMWARE server 2.0 on Ubuntu
However at the end I could get it working with no issues. I plan to install Windows 7.0 on the Virtual Machine and at some point of time get OS X Leopard working as well.
I wonder if there was a way to simulate hardware components so that although my hardware is different from what comes on a MAC I would be still able to simulate it.
Sunday, May 03, 2009
Sunday, April 05, 2009
Using the smtplib to send emails from python / django
import smtplib
addr_from = 'xyz@gmail.com' # this will be your address
addr_to = 'abc@yahoo.com' # person whom you want to send the email
server = smtplib.SMTP('smtp.gmail.com') # if you are using gmail then your smtp server is smtp.gmail.com
msg = ('From:'+addr_from+'\r\n'+'To:'+addr_to+'\r\n\r\n')
msg = msg + 'Testing SMTPLIB' #test message
server.ehlo() # Optional step
server.starttls()
server.ehlo() #Optional step
server.login('xyz@gmail.com','password')
server.sendmail(addr_from,addr_to,msg))
Thats it ... and python takes care of sending the email.
import smtplib
addr_from = 'xyz@gmail.com' # this will be your address
addr_to = 'abc@yahoo.com' # person whom you want to send the email
server = smtplib.SMTP('smtp.gmail.com') # if you are using gmail then your smtp server is smtp.gmail.com
msg = ('From:'+addr_from+'\r\n'+'To:'+addr_to+'\r\n\r\n')
msg = msg + 'Testing SMTPLIB' #test message
server.ehlo() # Optional step
server.starttls()
server.ehlo() #Optional step
server.login('xyz@gmail.com','password')
server.sendmail(addr_from,addr_to,msg))
Thats it ... and python takes care of sending the email.
Subscribe to:
Posts (Atom)
