Attaching Files to Email in App Engine?
问题 How do I attach a file located on Web URL to an email using google app engine (Python)? I have the file located at say: http://www.abc.com/files/file.pdf I want to attach this to an email and send it to a user on app engine. How do I do this? 回答1: To send attachment you have to fill the attachment field of an email message with a list of two-value tupless containing the file name and the file content. From here from google.appengine.api import urlfetch from google.appengine.api import mail