Send emails automatically using most email service providers with this simple script in Python!
The two modules used in this script are smtplib and email.mime.text.
smtplib
is a Python standard library module that provides an implementation of the Simple Mail Transfer Protocol (SMTP) for sending email messages. It is used to send email messages over the Internet, using an SMTP server.email.mime.text
is a module within the email package, which is also part of the Python standard library. It provides theMIMEText
class, which is used to create plain text email messages. TheMIMEText
class takes the plain text message as an argument and creates an email message object, which can then be sent using ansmtplib
SMTP server.
To use this email sender, you'll need the following information:
- The address of the SMTP server you'll be using.
- The port number used by the SMTP server.
- Your email account credentials.
Follow these steps to run the email sender:
- Enter your email,password and SMTP Server information in the credentials.py file.
- Make sure both credentials.py and email_sender.py are in the same directory.
- Run the email_sender.py file."
git clone https://github.com/SISSEF/python-email-sender.git
This project is licensed under a MIT LICENSE.
If you have any feedback, please reach out to me at youssef@idlahsen.me