I'm able to send SMS with SMTPLIB from my computer without a problem. Below is the simple script i'm using. The problem is that when I run the script on pythonanywhere I don't receive the text message. The truth is, I don't get any errors either. Is is possible that my phone carrier is blocking the sms for some reason?
import smtplib
email = "email@gmail.com"
password = "1234567890"
connection = smtplib.SMTP("smtp.gmail.com", port=587)
connection.starttls()
connection.login(user=email, password=password)
connection.sendmail(from_addr=my_email, to_addrs="5555555555@vtext.com", msg="Test")
connection.close()
Thanks