我正在尝试设置从my-domain.com到myappid.appspot.com的电子邮件转发。当我登录电子邮件帐户并输入用于转发邮件的电子邮件时,它会显示已发送带有代码的确认消息。我该如何访问该代码?
答案 0 :(得分:2)
我创建了这个并向我的电子邮件发送了一条确认消息。从那里我得到了链接,点击它,它工作得非常完美!
class LogSenderHandler(InboundMailHandler):
def receive(self, mail_message):
logging.info("Received a message from: " + mail_message.sender)
sender_address = "sender@email.com"
subject = "Processing message"
user_address = 'my@email.com
body = mail_message.original
mail.send_mail(sender_address, user_address, subject, body)