Can you please give me a simple, and straightforward python example of sending an HTML e-mail using App Engine? Plaintext is straightforward, but I'm having difficulties with HTML tags.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
I haven't tested this, so please forgive any little bugs. It's based on an example from the Google documentation: http://code.google.com/appengine/docs/python/mail/sendingmail.html
See this document. This is what you wanted. http://code.google.com/appengine/docs/python/mail/emailmessagefields.html
html field of a email message. An HTML version of the body content, for recipients that prefer HTML email.
attachments field for email attachments.
This details some issues with sending HTML email on App Engine: http://code.google.com/p/googleappengine/issues/detail?id=965