This module is a very simple module (the source code is only 20 lines) that allows you to send e-mails from your CherryPy program.
The module defines an abstract CherryClass called Mail, with one member variable called smtpServer and one method called sendMail.
To use it, just derive the Mail CherryClass, set smtpServer in the __init__ method, and then call sendMail to send an e-mail:
Exemple:
use Mail CherryClass MyMail(Mail): function: def __init__(self): self.smtpServer='smtp.site.com' CherryClass Root: mask: def index(self): <py-exec="myMail.sendMail('me@site.com', 'you@yourhost.com', '', 'text/plain', 'Hello', 'Hello,\nthis is me')"> <html><body> Hi, I just sent an e-mail to you@yourhost.com </body></html>