An easy-to-use python library to send emails within seconds.
Based on the pre-installed smtplib library.
See the pypi project here
Gmail users must turn on 'Less secure app access' in order to avoid smtplib errors. You can turn it on like so:
-
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.
I suggest you continue reading the 'SAFER ALTERNATIVE' below.
You can use an app password. See how to make one below:
Use the newly-generated password in place of sender_password
import pySMTP
pySMTP.send_email(sender_email, sender_password, receiver_email, email_subject, email_body)import pySMTP
pySMTP.send_email('[email protected]', 'my_password', '[email protected]', 'Test', 'hello. I sent this email with python!')import pySMTP
pySMTP.help()pre-installed smtplib library.
Made by HYKANTUS