[Tutor] SMTP

Grigor Kolev grigor.kolev at gmail.com
Thu Feb 11 21:13:36 CET 2010


Hi.
I try send a mail with smtplib
Server work with postfix.
I try it
------------------------------------------------ 
 import smtplib
 s=smtplib.SMTP("localhost")
tolist=['grigor.kolev at gmail.com']
msg = '''\
 From: grigor.kolev at gmail.com
Subject: testin'
This is a test '''
s.sendmail("test at local", tolist, msg)
-------------------------------------------------
How can i send the file?
And I am not sure that work.
Mail is not sending but  perhaps problem i in my postfix.
 
-- 
Grigor Kolev <grigor.kolev at gmail.com>



More information about the Tutor mailing list