Ich versuche, eine E-Mail von meiner Anwendung zu senden. Der Code wird erfolgreich ohne Fehler ausgeführt. Aber es sendet die E-Mail nicht. Es zeigt diese Nachricht auf der Konsole an.E-Mail von python webapp2 senden Google App Engine
You are not currently sending out real email.
If you have sendmail installed you can use it by using the
server with --enable_sendmail
Der Beispielcode von dem Google bereitgestellt ist:
message = mail.EmailMessage(
sender="[email protected]",
subject="Your account has been approved")
message.to = "ABC <[email protected]>"
message.body = """Dear Albert:
Your example.com account has been approved. You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.
Please let us know if you have any questions.
The example.com Team
"""
message.send()