On Wed, Sep 14, 2011 at 1:13 PM, Walter Prins <wpr...@gmail.com> wrote:
> On 14 September 2011 21:03, James Hartley <jjhart...@gmail.com> wrote: > >> On Wed, Sep 14, 2011 at 12:54 PM, Walter Prins <wpr...@gmail.com> wrote: >> > Aside: If you want to interact with a mail server there's probably better >> modules to be using than the telnet module. >> >>> >>> >> Do you have any suggestions? >> > > The smtplib module: http://docs.python.org/library/smtplib.html > Wow, I wasn't aware this existed. It appears to have what I was looking for, too. My goal was to validate email addresses in bulk, so this reduces the code I need to write. I also see that VRFY is disabled on some MX servers, so I may have to resort to telnetlib's read_some() yet. :-) Thanks, again for your comments. Jim
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor