6
votes

I have a python GAE app that sends emails like in the example using the address of a registered administrator for the application as the "sender" address. When an email arrives from such an API call, here's a pic of the attached warning.

This message may not have been sent by: [email protected] Learn more Report phishing

Am I doing something wrong? None of the 3 options mentioned in the "Learn More" link are relevant I believe: the sender is a gmail address so the "SPF and DKIM authentication" solution isn't relevant, I'm not sending to a mailing list and I'm not using SMTP (I think, though maybe GAE is...).

2
Are you using the SDK or a deployed app?Sologoub
It's a deployed app on the Master/Slave (not HRD).ubershmekel

2 Answers

8
votes

Assuming you're seeing this in production, it's probably because you're claiming to be from a gmail address, but sending via App Engine. Use one of your app's email addresses as the sender ([email protected]) and it should work fine.

0
votes

I think the best solution is to use Google's SMTP servers... It's the best way to not be considered as a spammer.