using smtp in python
Dan Stromberg
drsalists at gmail.com
Tue Oct 22 14:44:02 EDT 2013
On Tue, Oct 22, 2013 at 11:00 AM, <ashikbekal at gmail.com> wrote:
> I'm trying to send an email using python. The mail content is taken from
> file and subject of the mail is name of the file. The program is invoked as
> ./mailclient.py -f <from email address> -d <recipient email address>
> -i <file1> -s <server IP address>
> .
> How to i use server ip address and the mail id to send the email ? (would
> i require the password)
> --
> https://mail.python.org/mailman/listinfo/python-list
>
Some SMTP servers require a password and some do not. I'm guessing more
and more do, as spammers attack.
Here's a module that shows how to do it with a password:
http://stromberg.dnsalias.org/svn/mailer/trunk/mailer.py
You can check it out with svn checkout <url>, or just browse to the URL in
a web browser.
HTH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131022/a03abc24/attachment.html>
More information about the Python-list
mailing list