This package can be used to send text messages and emails from Python3.
Please submit a PR for additional mobile providers and email providers.
- Gmail
- Hotmail
- Live
- Outlook
- Yahoo
- Comcast
- AOL
- AT&T (ATNT)
- Sprint
- TMobile
- Verizon
- VirginMobile
from mailer.TextMessage import TextMessage
from mobile.tmobile import TMobile
from mobile.verizon import Verizon
from mobile.sprint import Sprint
from providers.email_credentials import Credentials
from providers.gmail import Gmail
message = TextMessage(Credentials("john@gmail.com", "[App Password]", Gmail()))
message.email(subject="Hello world!", body="This is the message body.", recipients=["dave@gmail.com", "mark@gmail.com", "kyle@yahoo.com"])
message.email(subject="Hello world!", body="This is the message body.", recipients=[Email("dave@gmail.com"), Email("mark@gmail.com"), Email("kyle@yahoo.com")])
message.text(subject="Hello world!", body="This is the message body.", recipients=[ Sprint("0001112233")])
message.send(subject="Hello world!", body="This is the message body.", recipients=[Email("dave@gmail.com"), Verizon("1234567890"), ATNT("0987654321")])