🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

pymail2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymail2

This is most easiest way to send email using smtp

0.2.3
Maintainers
1

pymail2

This library helps you send email with just an import

How to Install

through PyPI
pip install pymail2

How to Use

from pymail2 import PyMail

email_obj = PyMail(server_type = 'GMAIL', 
                    user = 'abc@example.com',
                    password = '***', 
                    from_email = 'abc@example.com',
                    to_email = 'xyz@example.com', 
                    subject = 'Your Wish',
                    template_path = 'path_for_the_html_template'
                 )

email_obj.send()

Need Help

Please add Issues through which I can help you in improving the library.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts