Skip to content

rioagungpurnomo/pymailers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMailers

The classic email sending library for Python.

Installation

Start to do the installation.

pip install pymailers

Example

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()

Donate

Contact me

Contact me via email: [email protected], I'm waiting for your input or suggestions.