🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

SendTextSMTP

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SendTextSMTP

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

0.4.11
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts