Skip to main content

A simple package to simplify the process to send text messages using the SMTP mail protocol.

Project description

SendTextSMTP

A simple package to simplify the process to send text messages using the SMTP mail protocol.

SETUP

You will need a app password if you are utilizing Gmail as your source email. Reference this help article: https://support.google.com/accounts/answer/185833?hl=en

USAGE

Import the module

import SendTextSMTP

Setting up the source email

messenger = SendTextSMTP.SMTP("YOUR_SOURCE_EMAIL", "YOUR_APP_PASSWORD", "YOUR_SMTP_SERVER", SMTP_PORT) Using YOUR_SMTP_SERVER should look like "smtp.gmail.com" and SMTP_PORT 587 for gmail as an example.

Sending a text message

messenger.send_message("PHONE_NUMBER@CARRIER.COM", "MESSAGE") Note that for texts with multiple lines, you can use \r to indicate a newline.

Project details


Download files

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

Source Distribution

sendtextsmtp-0.4.11.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sendtextsmtp-0.4.11-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file sendtextsmtp-0.4.11.tar.gz.

File metadata

  • Download URL: sendtextsmtp-0.4.11.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for sendtextsmtp-0.4.11.tar.gz
Algorithm Hash digest
SHA256 a1a12442540cf7bab81fb94e37fa041142aa25ae6570262175fba54ea8536cf4
MD5 8c727832a54a11a3c208540bbcebe2c7
BLAKE2b-256 7f876a1633f6421f56617bc1bc2c0367ba68fbf259bcf82ee82166eac8e97d4b

See more details on using hashes here.

File details

Details for the file sendtextsmtp-0.4.11-py3-none-any.whl.

File metadata

  • Download URL: sendtextsmtp-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for sendtextsmtp-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 b78510244f84b64f6617e5819a5370e500e062f8450c023278705914081c9388
MD5 0e65da5405dba7620ef6cf45b9322076
BLAKE2b-256 b1dd82d966414a4a2dffd92469278c4961d1ba29b35a62ded723002dbccf25e4

See more details on using hashes here.

Supported by

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