need some help for sending a msg in python

Cameron Laird claird at starbase.neosoft.com
Wed Feb 7 11:36:45 EST 2001


In article <M89g6.809$pC5.1923174 at nnrp6.proxad.net>,
kyrsa <dtulpan at free.fr> wrote:
>Hi,
>I have big problem about this part  of the file :
			.
			.
			.
>    temp_mail.write('Pour vous desabonner de la liste de diffusion :\n')
>
>temp_mail.write('http://www.domaine.com/listedif/desabon.php3?email='+values
>+'\n')
>    temp_mail.close()
>    rc = os.system('%s %s < %s' % (sendmail_path, values, temp_mail_name))
>
>
>
>when i'm testing it, it's writing :
>
>  File "mail_list.py", line 87
>
>temp_mail.write('http://www.domaine.com/listedif/desabon.php3?email='+values
>+'\n')
>    ^
>SyntaxError: invalid syntax
			.
			.
			.
Is the leading white space on that line not consistent
with what's around it?  The only other explanation con-
sistent with the symptom you describe is that there's
an unprintable character someplace outside the quotes
in that statement.

-- 

Cameron Laird <claird at NeoSoft.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list