<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 22, 2013 at 11:00 AM, <span dir="ltr"><<a href="mailto:ashikbekal@gmail.com" target="_blank">ashikbekal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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<br>
./mailclient.py -f <from email address> -d <recipient email address> -i <file1> -s <server IP address><br>
.<br>
How to i use server ip address and the mail id to send the email ? (would i require the password)<br>
<span class=""><font color="#888888">--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Some SMTP servers require a password and some do not. I'm guessing more and more do, as spammers attack.<br><br></div><div class="gmail_extra">Here's a module that shows how to do it with a password:<br>
<a href="http://stromberg.dnsalias.org/svn/mailer/trunk/mailer.py">http://stromberg.dnsalias.org/svn/mailer/trunk/mailer.py</a><br><br></div><div class="gmail_extra">You can check it out with svn checkout <url>, or just browse to the URL in a web browser.<br>
<br></div><div class="gmail_extra">HTH<br><br></div></div>