http://www.uploadyourimages.com/view/241318py_format.jpg
import smtplib
from email.MIMEText import MIMEText
def sendTextMail(to,sujet,text,server=""): #servername.company.com fro = "fake id" # you can give anything here.
mail = MIMEText(text)
mail['From'] = fro
mail['Subject'] =sujet
mail['To'] = to
smtp = smtplib.SMTP(server)
smtp.sendmail(fro, [to], mail.as_string())
smtp.close()
sendTextMail("[recepient id]","[subject]","[message content]")
import smtplib
from email.MIMEText import MIMEText
def sendTextMail(to,sujet,text,server="
mail = MIMEText(text)
mail['From'] = fro
mail['Subject'] =sujet
mail['To'] = to
smtp = smtplib.SMTP(server)
smtp.sendmail(fro, [to], mail.as_string())
smtp.close()
sendTextMail("[recepient id]","[subject]","[message content]")
3 comments:
#save this as [name].py and execute it after installing python 2.5. Its free...
#You also need an smtp server in your lan..so mostly office smtp servers wll do...
#working on a script that will take yahoo/gmail servers also...
#dont forget to give all intentations (spaces) as depicted in the image in the link given at the start of the article.
it doens't longer works with gmail can you explain me why please? my email jepe_abrantes@hotmail.com
http://technologiesuae.com/#5193 xanax withdrawal how long does it last - xanax side effects heart
Post a Comment