"Grigor Kolev" <grigor.ko...@gmail.com> 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=['grigor.ko...@gmail.com']
msg = '''\
From: grigor.ko...@gmail.com
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  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to