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.
NOTE: turning this feature is generally not a good idea as it isn't safe (see why online)
I suggest you continue reading the 'SAFER ALTERNATIVE' below.
SAFER ALTERNATIVE:
You can use an app password. See how to make one below:
-
go to 'Manage your google account'
-
then click on the 'security' tab
-
find 'Signing into Google'
-
click on 'App passwords'
-
type out your password
-
change 'Select app' to 'Mail'
-
change 'Select device' to the device you are currently using
-
Hit 'Generate' to get your password
Use the newly-generated password in place of sender_password
Usage
import pySMTP
pySMTP.send_email(sender_email, sender_password, receiver_email, email_subject, email_body)
Example
import pySMTP
pySMTP.send_email('my.email@email.com', 'my_password', 'my.friends.email@email.com', 'Test', 'hello. I sent this email with python!')
Help function
import pySMTP
pySMTP.help()
Requirements
pre-installed smtplib library.
Credits
Made by HYKANTUS
Metadata
Release files for pySMTP 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pySMTP-1.1.0.tar.gz | 558.4 kB | Without provenance | Details |
Release files / pySMTP-1.1.0.tar.gz
| Download URL | pySMTP-1.1.0.tar.gz |
|---|---|
| Size | 558.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3597da041f2dcb83236d017fcccffa7abe79f47dc134ea0ef3cc0b8c75c34428
|
|
BLAKE2b-256 checksum How to use checksums |
e4e64893434af646c74d81498dff5872d12ec01e9efcf1e861ea7b95a427f36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0
|
Security for pySMTP 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.