The classic email sending library for Python.
Start to do the installation.
pip install pymailers
A simple example is just sending an email message with PyMailer, in display you can replace it with false then it will not get any logs but if it is made true then you will get a log after sending the email message.
from pymailers.PyMailer import PyMailer
pymailer = PyMailer({
'smtp_host': 'smtp.gmail.com',
'smtp_port': 587,
'email': '[email protected]',
'password': 'xxxxxxxxxx',
'to': '[email protected]',
'subject': 'Hello World',
'body': '<p>Hi im Rio</p>',
'display': True
})
pymailer.send()
Contact me via email: [email protected], I'm waiting for your input or suggestions.