Error sending e-mail via SMTP server on App Engine development server

前端 未结 5 1607
北荒
北荒 2020-12-31 08:25

I am trying to send Email using this sample code and these command-line options:

dev_appserver.py --smtp_host=smtp.gmail.com --smtp_port=25 --smtp_user=xxx@g         


        
5条回答
  •  鱼传尺愫
    2020-12-31 09:14

    The other methods are no longer necessary:

    Setting the following in /appengine/api/mail_stub.py

    if self._allow_tls and smtp.has_extn ('STARTTLS'):
      smtp.starttls ()
    

    works for me on appengine sdk version 1.9.15

提交回复
热议问题