Reputation: 30284
I'm using mail.send_mail()
to send email from one address to another address.
When I run my app on localhost, i view in my log, it said :
You are not currently sending out real email. If you have sendmail installed you can use it by using the server with --enable_sendmail
So, does it means I must enable send mail function for my server. If that true, how to enable ?
Thanks :)
Upvotes: 3
Views: 2291
Reputation: 11173
Windows generally does not come with sendmail installed. You are much better off using the --smtp_host and --smtp_port options to configure your development server. Please note that these options are only required in development - once uploaded, sending mails just automagically works.
More info at: https://developers.google.com/appengine/docs/python/tools/devserver#Using_Mail
If you do not have SMTP server available to you from your ISP or your employer, you can use gmail. Settings are listed at: http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
And to add flags to the App Engine launcher, simply double-click your instance and the use the Extra Flags
field.
Upvotes: 5
Reputation: 3639
Yes you must enable it or you will only see the mail logged out.
see https://developers.google.com/appengine/docs/python/tools/devserver#Using_Mail
Upvotes: 0