Python: Mail Sent By Script Is Marked As Spam By Gmail
Solution 1:
You email consists of almost only HTML and a link. That smells like spam.
Suggestions:
- Send a plaintext email (less likely to be considered spam - and more comfortable for many users)
- If you use HTML, always include a plaintext version
- Improve the text-to-links/html ratio.
Solution 2:
Hum... depends on the signature of the SMTP, which might be close to "spam".
try to change the "noreply.net" thing to a real domain
It also might be that the Servers Hostname *.hostmonster.com is on a spamlist, because of known spam from any of their servers (happens often)
Many other reasons...
- wrong new lines
- wrong date / time format
- E-Mail Client can't handle your mail (wrong format)
Try to use another SMTP server, to see if it is the signature or the server and not your script!
Also try to send Mails with less images / links and even a lot more text!
If it is spam, could you please provide some information about X-Spam-Status, X-Spam-Level, X-Spam-DCC (Header elements). They give the best overview about what's going wrong!
-- Some additional Information about Spam: http://emailium.com/blog/wp-content/uploads/2011/02/Exact-Target-Infographic-Spam_vs_Whitelist-v2.jpg
Solution 3:
Also try this help document by Google. If you did everything accordingly, you can contact the Google support.
https://support.google.com/mail/bin/answer.py?hl=en&answer=81126
Solution 4:
If you're using google smtp to send emails, make sure to use your Sender's Name matches with your FirstName and Lastname matches with your google account, for example:
First Name: John Last Name: Doe
in python:
sender_address = john.doe@gmail.com
message["From"] = f"John Doe{sender_address}"
This took me a lot of error and trial.
Post a Comment for "Python: Mail Sent By Script Is Marked As Spam By Gmail"