Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

how do I attach binary files?

2006-10-03
2013-05-21
  • rainwolf8472
    rainwolf8472
    2006-10-03

    pardon the question but I 'm new to python and libgmail as of a few days ago.  The following code
      fs = libgmail.GmailComposedMessage(to, "", "", filenames=[name])
      ga.sendMessage(fs)
    works fine when said files are simple text files, but it failes as soon as the files are wild binary files, even attaching the source of an email in a text file (.eml files) failes.
    What am I missing here? Any hints?

    have fun,
    wal