[Tutor] sending an email

Jeff Shannon jeff at ccvcorp.com
Fri Sep 26 16:20:01 EDT 2003


nihilo wrote:
 > Conrad Koziol wrote:
 >
 >> hey can anyone point me to a tutorial or a link where it explains 
pretty
 >> clearly how to send an email??? Or perhaps describe the process
 >> here.It's going to be used for a cgi program where i need to send the
 >> user back some data. Thanks
 >
> See the example they give in the documentation for the smtplib module, 
> at http://python.org/doc/current/lib/SMTP-example.html.  You'll be 
> amazed at how easy it is ;-)
> 

Also be sure to check out the email package --

http://python.org/doc/current/lib/module-email.html

You would typically use the email package to create and format a 
message, and then the smtplib module to send that message to your 
mailserver.

Jeff Shannon
Technician/Programmer
Credit International




More information about the Tutor mailing list