On Tue, Oct 22, 2013 at 11:00 AM, <ashikbe...@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
-- https://mail.python.org/mailman/listinfo/python-list