python 3 library for sending mails
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.project
.pydevproject
__init__.py
mail_funcs.py
readme.md

readme.md

EasyMail

Description

Python3 library for easy sending of mails. Uses smtplib library.

You need to set all needed variables (listed in __init__.py (or you can modify default values)) before calling send_mail.

Look into __init__.py to see what's included and into specific .py files to se functions..

Example

send_mail

You need to set all needed variables and after that you can call send_mail as many times you would like, as you can see below.

import easymail
easymail.send_mail.use_ssl = False
easymail.send_mail.use_tls = True
easymail.send_mail.server = 'example.org'
easymail.send_mail.user = 'user@example.org'
easymail.send_mail.password = 'password'

easymail.send_mail('user@example.org', 'user2@example.org', 'test', 'test2')
easymail.send_mail('user@example.org', 'user2@example.org', 'test', 'test3')
easymail.send_mail('user@example.org', 'user2@example.org', 'test', 'test4')