I just learned how to write a Python script that uses Gmail’s API to send mails automatically and it works fine except for a couple of issues. First, all the mails sent throught this method have a warning that they might be spam or phishing, which means some servers might block them. Second, the mails sent do not have my signature.
I’m assuming that both are related, possibly because the API is probably not going through the full process of identifying my account and my primary e-mail, but I couldn’t figure out a way to make that work.
The method I used is this one: https://thepythoncode.com/article/use-gmail-api-in-python
Any help is greatly appreciated. Thanks!
Flavio Fernandes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.