Skip to main content

Mail Tools boxes to make developer life easier on build mail sender or even mail server

Project description


MailToolsBox is a Python library for dealing with Email handling in easy way.


Use the package manager to install MailToolsBox.

pip install MailToolsBox

Send SMTP Usage

import MailToolsBox.mailSender
mail = MailToolsBox.mailSender.SendAgent(user_email='', server_smtp_address='', user_email_password='User Password', port=587)
mail.send_mail(recipent_email='', subject='This is Subject Text', message_Body='This is  Body Text')


from MailToolsBox.imapClient import ImapAgent

PASSWORD = "mypassword"
SERVER_ADDRESS = ('my server address or domain name or ip ex:"" ')

x = ImapAgent(email_account=EMAIL_ACCOUNT, password=PASSWORD, server_address=SERVER_ADDRESS)
x.download_mail_text() # optional parameter : (lookup='ALL',save=True,path='/home/user/')
x.download_mail_json() # return json format | optional parameter : (lookup='ALL',save=True,filename='filename.json',path='/home/user/')
x.download_mail_msg() # optional parameter : (lookup='ALL',path='/home/user/')


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for MailToolsBox, version
Filename, size File type Python version Upload date Hashes
Filename, size MailToolsBox- (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page