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
dev_appserver.py doesn't support TLS which is required by Gmail. You can enable it by adding a few lines in api/mail_stub.py:
# After smtp.connect(self._smtp_host, self._smtp_port)
smtp.ehlo()
smtp.starttls()
smtp.ehlo()
Note! That's the quick and dirty solution. You should add some kind of flag to tell it whether you want to use TLS or not, as it is not always desired.