how to send a form html by email ?

Gerhard Häring gerhard.haering at opus-gmbh.net
Mon Mar 17 07:39:26 EST 2003


Gerard Breiner <gerard.breiner at ias.u-psud.fr> wrote:
> My form is a html form. My server apache is configured with
> mod-python and here is a part of my http.conf :
> ------------------------------
> Alias /python "C:/Program Files/Apache Group/Apache/htdocs/python"
>      <Directory "C:/Program Files/Apache Group/Apache/htdocs/python">
>   AddHandler python-program .py
>   PythonHandler email
>   PythonDebug on
>      </Directory>
> ---------------------------------
> and here is my email.py file that i am trying to test.
> --------------------------------
> import smtplib
> 
> # Import the email modules we'll need
> from email.MIMEText import MIMEText
> [...]

Try using a different module name, *not* email. 'email' is already the
name of the 'email' package that you're trying to import, so it's
likely that there's a name collission that's causing your problems.

HTH,

-- Gerhard




More information about the Python-list mailing list