ealong / Trilogy-Tutor-Auto-Emailer

10 stars 7 forks source link

Gmail marking emails as potential spam / phishing #2

Open ealong opened 4 years ago

ealong commented 4 years ago

Opening this as an issue for my own organization.

Issue: Emails sent with script are marked with warning: "Be careful with this message. Gmail could not verify that it actually came from ____".

Some solutions:

^Neither solution is satisfactory to me because if you remove the From header, Gmail won't attach your display name to your email address. I do not believe these warnings are attached to my emails any longer though - after many script runs and student's interacting with these emails (and the tutor replying), Google's algorithm may no longer view them as a potential threat.

If anyone finds a more robust solution, please post it here. Thanks!

gage117 commented 3 years ago

I ran into this same issue but I think it's actually just an issue during testing; at least it was for me. Either that or it is no longer an issue because of some change.

Explanation: I did some sleuthing and found this page which has a section that piqued my curiosity. It mentions that the warning will come up whenever the "To" and "From" address is the same, which is usually the case during testing.

"This warning will appear if:

This led me to use an alternate email as the TEST_EMAIL variable in config.py so that the TUTOR_EMAIL and TEST_EMAIL were different email addresses. When testing it this way I can keep the From header the way we intend it and the warning doesn't appear. Changing the emails back to being the same prompted the warning to come back as it was before. This leads me to believe that none of the students will see the warning as it was only being triggered due to the "From" and "To" email addresses being the same.