Re: Email Directly from python

2008-02-15 Thread Daniel Folkes
You could always just set up a gmail account and use that SMTP. Thats what I do. Then all you have to do is google search for "gmail smtp python" and get some easy code. You can even send attatchments really easy. -Daniel Folkes brad wrote: > I'd like to send email directly from within python

Re: Email Directly from python

2008-02-14 Thread Martin P. Hellwig
Dennis Lee Bieber wrote: > The first response to the query was to invoke the command line > "mail" utility of a Unix type OS. THAT program is, what I believe, was > meant by "mail will invoke a smtp server"... Not "mail" as a general > concept, but the utility command... Ah yes I see that n

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Guilherme Polo wrote: > I hope to not disappoint you, but mail will invoke a smtp server to > send your mail. > I disagree. If you really want to, all you need is telnet. You connect to port 25 of the mail server that handles the mail of the domain for that mail address and do the helo, mail f

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Martin P. Hellwig wrote: > I already wrote a command line mailer that can do attachments too, no > need to write it again. If anybody is interested I can open-source it. > To reply on my own post ;-) Even if nobody is interested in case you change your mind it is hosted at: http://code.google.c

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
brad wrote: > 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 cha

Re: Email Directly from python

2008-02-13 Thread brad
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 s

Re: Email Directly from python

2008-02-13 Thread Guilherme Polo
2008/2/13, brad <[EMAIL PROTECTED]>: > I'd like to send email directly from within python without having to > rely on an external smtp server. You know, something like the good, old > Unix... > > echo My_message | mail -s Subject [EMAIL PROTECTED] I hope to not disappoint you, but mail will inv

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Larry Bates wrote: > brad wrote: >> I'd like to send email directly from within python without having to >> rely on an external smtp server. You know, something like the good, >> old Unix... >> >> echo My_message | mail -s Subject [EMAIL PROTECTED] >> >> Can Python do something similar in a porta

Re: Email Directly from python

2008-02-13 Thread Larry Bates
brad wrote: > I'd like to send email directly from within python without having to > rely on an external smtp server. You know, something like the good, old > Unix... > > echo My_message | mail -s Subject [EMAIL PROTECTED] > > Can Python do something similar in a portable fashion without a smtp

Email Directly from python

2008-02-13 Thread brad
I'd like to send email directly from within python without having to rely on an external smtp server. You know, something like the good, old Unix... echo My_message | mail -s Subject [EMAIL PROTECTED] Can Python do something similar in a portable fashion without a smtp server installed on the