Is it possible to add headers to emails being sent by app-engine?

一世执手 提交于 2020-01-22 02:20:11

问题


I'm currently putting the finishing touches to an application for a client, this application sends daily emails to subscribers, is it possible to add custom headers to the email so that certain variables can be tracked, like day number (X-Day-Number) etc...


回答1:


There isn't a documented way to do it. Perhaps you should suggest it on the issue tracker. http://code.google.com/p/googleappengine/issues/list

Of course, if you're really determined, you can create your own email sending gateway on a more traditional server, and call its web service from App Engine.




回答2:


from looking in appengine/api/mail.py

mime_message = myMessage.to_mime_message()
mime_message['message_id'] = 'myid'

Thanks to https://stackoverflow.com/users/396269/derpderp



来源:https://stackoverflow.com/questions/2902721/is-it-possible-to-add-headers-to-emails-being-sent-by-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!