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