smtplib question
jean-michel bain-cornu
pythonnews at nospam.jmbc.fr
Wed Jan 17 04:26:57 EST 2007
>> The mail server in my organization is MS exchange. Obviously I can
>> email to
>> any email address from my MS outlook.
>>
>> What's the easiest way to fix the program?
>
> You will need to get smtplib to authenticate when connecting to the
> exchange server. Use the login function and the same username/pw
> that you use to login to Outlook.
>
> server.login(user, password)
>
> Note: Your exchange administrator may have disabled this function. (
> Your Outlook will almost certainly be using MAPI not SMTP to talk to
> the server).
>
It's very often a pain to talk with Exchange.
If Outlook Web Access is enabled, you can use urlib/urllib2 to send your
emails exactly like you'd do it by a web browser. It's sometimes easier
than using the regular smtplib capabilities.
Regards,
jm
More information about the Python-list
mailing list