Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (17 loc) · 460 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 460 Bytes

Manmail

Name is inspired by mailman

Send e-mail, easier

How to use

pip install git+https://github.com/nerogit/manmail.git

from manmail import Gmail


email_addrs = 'YOUR_EMAIL_ADDRESS'
password = 'USER_PASSWORD_OF_EMAIL_ACCOUNT'
to_addrs = 'EMAIL_ADDRESS_WHO_RECEIVE_THE_MAIL'

gmail = Gmail(email_addrs, password)
content = '''
<h1>Hello</h1>
<p>It's me</p>
'''
gmail.send_mail(to_addrs, 'title', content)