sending emails using python

Tim Williams tim at tdw.net
Thu Sep 14 06:08:55 EDT 2006


On 14 Sep 2006 00:11:05 -0700, sridhar <ramasridhar.kasturi at gmail.com> wrote:
>
> Tim Williams wrote:
> > Have you verified that you are allowed to use SMTP on this server ?
> > Can you send email via it using outlook express or a similar POP3/IMAP
> > mail client?
> >
> > :)
>
>
> yes , because iam having account on that server

Having an account on an Exchange server doesn't automatically mean you
have SMTP access to that server.    Some exchange servers don't have
SMTP running at all, and others will not allow SMTP access from local
IP addresses - even with authentication.

Can you telnet to your Exchange server on port 25 and start an SMTP
conversation, using the EHLO or HELO, MAIL and RCPT commands, but
quitting before the DATA command?  If you can successfully specify a
recipient, then your script should work,  if not you will need your
script to work around the problem based on what you do or don't get
back from the server.

HTH :)



More information about the Python-list mailing list