Skip to main content

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

Project description

Dev Tools Library is a multiplatform tools development api, targeted to help keep you focused on writing the tools and not the connective glue code between packages.

Installation

Use the package manager https://pypi.org/project/MailToolsBox/ to install MailToolsBox.

pip install MailToolsBox

Send SMTP Usage

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

IMAP CLIENT Usage

from MailToolsBox.imapClient import ImapAgent

EMAIL_ACCOUNT = "myaddress@gmail.com"
PASSWORD = "mypassword"
SERVER_ADDRESS = ('my server address or domain name or ip ex:"imap.gmail.com" ')

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/')

Contributing

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.

License

MIT | https://choosealicense.com/licenses/mit/

Project details


Download files

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

Source Distribution

MailToolsBox-0.0.4.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file MailToolsBox-0.0.4.4.tar.gz.

File metadata

  • Download URL: MailToolsBox-0.0.4.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for MailToolsBox-0.0.4.4.tar.gz
Algorithm Hash digest
SHA256 eabcf0c58ee78de6b65191b7b5b8dd5b87de5bd7c56090cac8364c108e055419
MD5 84f2d0b54f0831168aec572e7c32d2a6
BLAKE2b-256 82b834c5739ce4517e4b6ae08fcd46897e2592cb6f2f841e101e3c96fdf26e72

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page