"Grigor Kolev" <[email protected]> wrote

I try send a mail with smtplib
Server work with postfix.
I try it
------------------------------------------------ import smtplib
s=smtplib.SMTP("localhost")

This requires you to have an SMTP server running on localhost.
Do you? I notice you say the server works with postfix but is it running when you exercise the script? Its one possibility.

tolist=['[email protected]']
msg = '''\
From: [email protected]
Subject: testin'
This is a test '''
s.sendmail("t...@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.

HTH,

Alan G

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to