# MailToolsBox
MailToolsBox is a Python library for dealing with Email handling in easy way.
## Installation
Use the package manager [pip](https://pypi.org/project/MailToolsBox/) to install MailToolsBox.
`bash pip install MailToolsBox `
#Send Usage
` python 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 Usage
<pre><code class=”language-python”>
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/’) </code></pre>
## 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/)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file MailToolsBox-0.0.4.3.tar.gz.
File metadata
- Download URL: MailToolsBox-0.0.4.3.tar.gz
- Upload date:
- Size: 3.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52a6fddf339c3882483e221878080dad9e9266bfaee434fe8a9980a1f39ad38c
|
|
| MD5 |
427f6cce5569ea429a5ea45131e9cf1d
|
|
| BLAKE2b-256 |
0f5571798abb83a3ccaca3d915cbb3aa345cd739ff62c5489b2eadc90425ade6
|