In article <[EMAIL PROTECTED]>, Kun <[EMAIL PROTECTED]>
wrote:
>I have a python-cgi form whose sole purpose is to email.
>
>It has the fields 'to', 'from', 'subject', 'body', etc. and if the user
>fills them out and clicks submit, it will invoke another file called
>mail.py which uses smtplib t
I assume that you are trying to pass data from one 'standalone' cgi
script to another cgi script (mail.py). Depending on what exactly you
are trying to do, you could either set the information in a cookie, or
simply have a hidden input () element in the HTML which gets populated by the initial
cgi
I V wrote:
> 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 y
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
I V wrote:
> Kun wrote:
>> This works fine but instead of typing in a 'body', i would like the
>> initial python program to just send a string as the body of the email.
>> now normally i'd just set the msg in the mail.py file equal to the
>> string, however, i do not know how to link a string from
Kun wrote:
> This works fine but instead of typing in a 'body', i would like the
> initial python program to just send a string as the body of the email.
> now normally i'd just set the msg in the mail.py file equal to the
> string, however, i do not know how to link a string from another python
>
Kun wrote:
> I have a python-cgi form whose sole purpose is to email.
>
> It has the fields 'to', 'from', 'subject', 'body', etc. and if the user
> fills them out and clicks submit, it will invoke another file called
> mail.py which uses smtplib to send the message.
>
> This works fine but inst
I have a python-cgi form whose sole purpose is to email.
It has the fields 'to', 'from', 'subject', 'body', etc. and if the user
fills them out and clicks submit, it will invoke another file called
mail.py which uses smtplib to send the message.
This works fine but instead of typing in a 'body'