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
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textmail-1.0.tar.gz.
File metadata
- Download URL: textmail-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
974bc0c92d5c76e9589285ef870ac181a4f5cef7d67fe30ccc31e562fb406b22
|
|
| MD5 |
8ce362ac2d69981d81d5d400da86a47d
|
|
| BLAKE2b-256 |
ffddf3a5f82ecb387267b249c5a9e88ad6ca7d1be3228220cd119a3a4b7eafef
|
File details
Details for the file textmail-1.0-py3-none-any.whl.
File metadata
- Download URL: textmail-1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fdc6283bd81a1bf63753352ed4204bd7d87a1b6638e43ff1a8774e839e9bda9
|
|
| MD5 |
778f65a4ea8e2a3eddac9498a794f20c
|
|
| BLAKE2b-256 |
6eaa6d7043a616490fe504e7c42d43434f67a2f8a14d2c24ef4e0970f8b0321b
|