how to send a form html by email ?
Gerard Breiner
gerard.breiner at ias.u-psud.fr
Mon Mar 17 08:59:27 EST 2003
I try "PythonHandler tmail". the result provide the same error.
Gerard
"Gerhard Häring" <gerhard.haering at opus-gmbh.net> a écrit dans le message de
news: slrnb7bgcf.1ho.gerhard.haering at haering.opus-gmbh.net...
> 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