Skip to main content

A tool for sending text messages via email

Project description

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()))

##Send email with list of Strings

message.email(subject="Hello world!", body="This is the message body.", recipients=["dave@gmail.com", "mark@gmail.com", "kyle@yahoo.com"])

##Send email with list of Email objects

message.email(subject="Hello world!", body="This is the message body.", recipients=[Email("dave@gmail.com"), Email("mark@gmail.com"), Email("kyle@yahoo.com")])

##Send a text message

message.text(subject="Hello world!", body="This is the message body.", recipients=[ Sprint("0001112233")])

##Send to a mix

message.send(subject="Hello world!", body="This is the message body.", recipients=[Email("dave@gmail.com"), Verizon("1234567890"), ATNT("0987654321")])

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textmail-1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

textmail-1.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page