On 20/09/05, M.N.A.Smadi <[EMAIL PROTECTED]> wrote:
> hi;
> if i want to send a mail message using the "mail" client on a machine
> that has smtp protocol is there an easy way (i.e. like bash where you
> would just type mail -s SUBJECT message RECIPIENT) to do it from a
> python script?

Any mail client using SMTP will be outbound only,  you wouldn't be
able to send mail "through" the client using SMTP.

>From a post earlier today :)

s = smtplib.SMTP("server")
s.sendmail(fromaddress, toaddresess, msg)

You can send email directly to your local server (or direct to the
recipeint server) directly from your python "script"

HTH :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to