Maybe this helps. I use a PDF in the blobstore to attach a PDFand the GAE Python mail API. I do not need to create the multipart Mime message message myself.
message.to = 'john....@example.com' message.body = 'message with a PDF attachment' attach_name = 'your_name' blobs = blobstore.BlobInfo.gql("WHERE filename = '%s'" %(attach_name)) : blob_key = blobs[0].key() blob_reader = blobstore.BlobReader(blob_key) attach_data = blob_reader.read() # read from the blob message.attachments=[(attach_name,attach_data)] -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/OG2bGUZPVZgJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.