This is my normal code in my VPS hosting which provide python 2.4
def mail(receiver,Message): import smtplib try: s=smtplib.SMTP() s.con
Is SMTP.starttls() available? You can also do e.g.:
SMTP.starttls()
def mail(receiver,Message): import smtplib try: s=smtplib.SMTP() s.connect("smtp.gmail.com",587) s.starttls() s.login("email@gmail.com", "password") s.sendmail("email@gmail.com", receiver, Message) except Exception,R: return R