2
我已經使用--enable_sendmail=yes
選項啓用了sendmail,如the GAE docs中所述,並且仍然沒有收到任何電子郵件(雖然電子郵件確實出現在日誌消息中)。簡化的代碼如下所示:Sendmail不適用於本地GAE本地開發服務器
from google.appengine.api import mail
SENDER_EMAIL_ADDRESS = "[email protected]"
msg = "Test message"
subject = "Test subject"
recipient = "{} <{}>".format('username', '[email protected]')
mail.send_mail(sender=SENDER_EMAIL_ADDRESS,
to=recipient,
subject=subject,
body=msg)
我在做什麼錯?