I am trying to send messages on gmail using python. What I did was following:
>>> import smtplib
>>> session = smtplib.SMTP('smtp.gmail.com',587)
But just after this step, it got stuck i.e. it is not being able to connect to the server.
I searched this up on google and found out that gmail actually does a reverse dns lookup and doesn't allow a connection if a domain is not found.
Is there a way to prevent gmail from doing this reverse lookup or something equivalent which helps me in sending messages using python?