Good idea! I am sorry that I did not find it myself.

2012/9/26 Niphlod <[email protected]>

> everything going to scheduler must be "jsonifiable". Can you use the
> attachment parameters pointing to a physical file (as
> '/yourapp/private/something.png') and in your "send_mail" function retrieve
> the path and initialize an attachment ? A string is definitely
> jsonifiable....
> e.g.
> def send_mail(to, subject='None', message='None', attachment=None):
>       attachment = Mail.Attachment(attachment)
>       mail.send(......, attachment)
>
>
>
>

-- 



Reply via email to