I have a very simple piece of code (just for testing):
import smtplib
import time
server = 'smtp.myprovider.com'
recipients = ['[email protected]']
sender = '[email protected]'
message = 'Subject: [PGS]: Results
BlaBlaBla'
session = smtplib.SMTP(server)
session.sendmail(sender,recipients,message);
This works but the problem is that e-mail clients don't display a sender.
I want to be able to add a sender name to the e-mail. Suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…