[mod_python] Interesting PSP error...

Jim Gallacher jpg at jgassociates.ca
Fri Nov 3 16:14:00 EST 2006


durumdara wrote:
> Hi !
> 
> Interesting, because I copy this code from other module, paste into my 
> psp page, and then I got error:
> 
> ...
>    # Mail to admin
>    import mailtools
>    mailtools.SendMail("xxxxxxxx.admin at xx.xxxxxx.org", 
> ["xxxx at xx.xxxxxx.org"],
>        "Xxxxxxxxxxxxxxxxxxxx", body, Server="xx.xxxxxx.org",
>        SmtpUsr = "xxxxxxxx.xxxxx at xx.xxxxxx.org", SmtpPwd = "xxxxxxxxxxxx")
> %>
> <center>
> 
> 
> When I join to one line, the problem vanished:
> 
> 
>    mailtools.SendMail("xxxxxxxx.admin at xx.xxxxxx.org", 
> ["xxxx at xx.xxxxxx.org"], "Xxxxxxxxxxxxxxxxxxxx", body, 
> Server="xx.xxxxxx.org", SmtpUsr = "xxxxxxxx.xxxxx at xx.xxxxxx.org", 
> SmtpPwd = "xxxxxxxxxxxx")
> 
> 
> What happened ???

I don't know! :)

What was the error? What is in the error log? Also, could you indicate 
where the line breaks are in your original code. Email line wrap 
weirdness makes it hard to tell.

Jim


More information about the Mod_python mailing list