Kun wrote: > mail currently gets the body from an input box. > > this is where mail.py gets invoked:
OK, I'm a bit confused. Where is the "initial python program" in all this? You seem to have an one python program (mail.py) and an HTML form. As it stands, I don't see why you can't change mail.py so that it refers to your string instead of msg.as_string() . -- http://mail.python.org/mailman/listinfo/python-list