내 응용 프로그램에서 전자 메일을 보내려고합니다. 코드가 오류없이 성공적으로 실행됩니다. 그러나 이메일을 보내지 않습니다. 콘솔에이 메시지가 표시됩니다.python에서 이메일 보내기 webapp2 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
구글에서 제공하는 샘플 코드는 다음과 같습니다
기본적으로 dev_appserver 실제 메일을 전송하지 않기 때문이다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()