A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/341433.html below:

mailing from with python

mailing from with python mailing from with pythonTim Williams (gmail) tdwdotnet at gmail.com
Tue Sep 20 13:30:13 EDT 2005
On 20/09/05, M.N.A.Smadi <smadim2 at grads.ece.mcmaster.ca> 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 :)

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4