Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Engine, Python : Send Mail function

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 :)

like image 486
hqt Avatar asked May 26 '26 12:05

hqt


1 Answers

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. enter image description here

like image 68
Maria Zverina Avatar answered May 30 '26 05:05

Maria Zverina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!