Email Directly from python

brad byte8bits at gmail.com
Wed Feb 13 16:11:01 EST 2008


Martin P. Hellwig wrote:

> The tricky part is how to resolve the mail server for a mail address. 
> Usually you have to query the mx record of that domain. I solved that by 
>  looking if I can find the nslookup binary.

The from and to are static constants... they don't change. Mail just 
seems so tricky these days what with all the blacklists, greylists, 
whitelists, etc. It's almost as if email is broken.  Location of the 
sending pc matters too. Just wondering if there is a super simple one 
liner in Python (that's portable) that can do this.




More information about the Python-list mailing list