Skip to main content

An easy-to-use python library to send emails within seconds

Project description

pySMTP

An easy-to-use python library to send emails within seconds. Based on the pre-installed smtplib library.

IMPORTANT

Gmail users must turn on 'Less secure app access' in order to avoid smtplib errors. You can turn it on like so:

  • go to 'Manage your google account'

  • then click on the 'security' tab

  • scroll down until you find 'Less secure app access' and click on the 'Turn on access' button

  • you should be asked to 'Allow less secure apps' again. turn it on.

Usage

import pySMTP
pySMTP.send_email(sender_email, sender_password, receiver_email, email_body)

Example

import pySMTP
pySMTP.send_email('my.email@email.com', 'my_password', 'my.friends.email@email.com', 'hello. I sent this email with python!')

Help function

import pySMTP
pySMTP.help()

Requirements

pre-installed smtplib library.

Credits

Made by HYKANTUS

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

pySMTP-1.0.0.tar.gz (557.3 kB view hashes)

Uploaded Source

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