Hello,
I'm writing a simple mass mail application, it interacts with hMailServer and works quite well.
My biggest problem, since the application works is that all my messages are considered as spam by gmail and many other important provider and are not reiceved by yahoo.
I googled to found out what was the problem and I come up just with a possible header problem.
Since I couldn't figure how to solve this problem i used an example of aspn and added some lines of code. Here is the "problemati c" part:
I'm on windows xp italian version and python 2.5 .
Thanks for helping,
Luke
I'm writing a simple mass mail application, it interacts with hMailServer and works quite well.
My biggest problem, since the application works is that all my messages are considered as spam by gmail and many other important provider and are not reiceved by yahoo.
I googled to found out what was the problem and I come up just with a possible header problem.
Since I couldn't figure how to solve this problem i used an example of aspn and added some lines of code. Here is the "problemati c" part:
Code:
out = cStringIO.StringIO() htmlin = cStringIO.StringIO(html) txtin = cStringIO.StringIO(text) writer = MimeWriter.MimeWriter(out) writer.addheader("Subject", subject) writer.addheader("MIME-Version", "1.0") writer.addheader("From", "<b12nd2@galactica.it>") writer.addheader("Reply-To", "<b12nd2@galactica.it>") writer.addheader("Message-ID", "<%s@galactica.it>" % id("something")) writer.addheader("Date",strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
Thanks for helping,
Luke
Comment