In trunk, thanks. Please check it.

On May 10, 3:23 am, Iceberg <[email protected]> wrote:
> Hi pals,
>
> gluon.tools.Mail is handy but it doesn't not contain the Date header
> of a mail. Some email system tend to suspect such email as spam
> because it is not like usual email client behavior.
>
> It is easy to fix. Just add a line after the line begins with
> "payload['Subject'] = ..." as below:
>
>     from time import gmtime, strftime
>     payload['Date'] = strftime("%a, %d %b %Y %H:%M:%S +0000",
> gmtime())
>
> Besides, document here has some typo ("gluon.tool.Mail") and perhaps
> outdated (no need for globals() any 
> more).http://web2py.com/book/default/section/5/5?search=mail
>
> Regards,
> Iceberg

Reply via email to