Re: SMTP help please

2005-06-07 Thread Mike Meyer
Martin Franklin <[EMAIL PROTECTED]> writes: > server = smtplib.SMTP("mailserver.somewhere.com") Why are you beating up Kee's mail server (hint: "whois somewhere.com")? See RFC 2606 http://www.ietf.org/rfc/rfc2606.txt > and search for "example.com" for how to pick example domain names properly.

Re: SMTP help please

2005-06-07 Thread Ivan Shevanski
>From: Larry Bates <[EMAIL PROTECTED]> >To: Ivan Shevanski <[EMAIL PROTECTED]> >Subject: Re: SMTP help please >Date: Tue, 07 Jun 2005 07:39:01 -0500 > >I have found that the SmtpWriter class "hides" all the >complexity in creating emails like you

Re: SMTP help please

2005-06-07 Thread Larry Bates
I have found that the SmtpWriter class "hides" all the complexity in creating emails like you want to send. Check it out here: http://motion.sourceforge.net/related/send_jpg.py HTH, Larry Bates Syscon, Inc. Ivan Shevanski wrote: > I really can't figure out anything about the SMTP module. . .I

Re: SMTP help please

2005-06-07 Thread Martin Franklin
Tim Williams wrote: > - Original Message - > From: "Tim Williams" <[EMAIL PROTECTED]> > >>try: >>s.close() >>except >>pass > > > Typo!! > > That should be s.quit() not s.close() > > :) > > > > and perhaps put into a finally: Mart -- http://mail.python.org/mailma

Re: SMTP help please

2005-06-07 Thread Tim Williams
- Original Message - From: "Tim Williams" <[EMAIL PROTECTED]> > > try: > s.close() > except > pass Typo!! That should be s.quit() not s.close() :) -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTP help please

2005-06-07 Thread Tim Williams
- Original Message - From: "Martin Franklin" <[EMAIL PROTECTED]> > server.sendmail(fromaddr, toaddrs, msg) You can use this if you don't need to worry about whether the email was successfully sent to all recipients. Otherwise, you need something like this (untested and partly copied

Re: SMTP help please

2005-06-07 Thread Martin Franklin
Ivan Shevanski wrote: > I really can't figure out anything about the SMTP module. . .I think I'm > in over my head( Im pretty new to python). Can someone show me a > really(and I mean REALLY) basic tutorial for smtp or explain it? > > program: > I want to make my program have a feedback form at

Re: SMTP help please

2005-06-07 Thread Simon Brunning
On 6/7/05, Ivan Shevanski <[EMAIL PROTECTED]> wrote: > I really can't figure out anything about the SMTP module. . .I think I'm in > over my head( Im pretty new to python). Can someone show me a really(and I > mean REALLY) basic tutorial for smtp or explain it?

SMTP help please

2005-06-06 Thread Ivan Shevanski
I really can't figure out anything about the SMTP module. . .I think I'm in over my head( Im pretty new to python). Can someone show me a really(and I mean REALLY) basic tutorial for smtp or explain it? program: I want to make my program have a feedback form attached to it at the end which se