I have an email web service based on GAE mail API . How can I set a “reply to” address ?
from future import with_statement# read data from request mail_to = str(self.request.POST.get('to')) mail_from = str(self.request.POST.get('from')) mail_subject = str(self.request.POST.get('subject')) mail_plain = str(self.request.POST.get('plain')) mail_html = str(self.request.POST.get('html')) message = mail.EmailMessage() message.sender = mail_from message.to = mail_to message.subject = mail_subject message.body = mail_plain if mail_html != None and mail_html != "": message.html = mail_html message.send()Basically I need to set a different email address to reply to when the client clicks the “reply to” button from his email client .
1 Answer