When you send mail using the Mail API, there are some restrictions on the headers that you can use and the types of files you can attach.
Optional headers you can use
An outgoing email has headers that provide details about the message, such as the sender, recipient, date, and subject. Each header has a name and a value. You can also include the following headers in an outgoing email; for security purposes, other headers are not allowed:
Mail with attachments
An outgoing email message can have file attachments. Each attachment has a filename and file data. The file data can come from any source, such as an application data file or the datastore.
Filename extensions that are prohibited
As a security measure to protect against viruses, email attachments cannot use the following filename extensions, and ZIP files cannot contain files with the following filename extensions:
Attachments and Multipurpose Internet Mail Extensions (MIME) types
The MIME type of an attachment is determined from the file's extension. The MIME type identifies the type of content that is being sent, and can determine how that data is transferred.
The following is a list of MIME types and their corresponding filename
extensions. You are not limited to these extensions, but if you use an unknown
extension, App Engine will assign it the MIME type
|MIME type||Filename extensions|
|application/vnd.ms-powerpoint||pps, ppt, pptx|
|audio/x-aiff||aif, aifc, aiff|
|image/jpeg||jpeg, jpg, jpe|
|text/plain||asc, c, diff, log, patch, pot, text, txt|
|video/mpeg||mpeg, mpg, mpe|