A package to send mail
Project description
Mailer
Utility For Handling Mails
It can be send simple plain mail, send mail accroding to body template, mail with attachments.
We can include cc and bcc email addresses to the mail
Example
from mailer import Mailer
my_mailer = Mailer('smtp.gmail.com', '587', 'testrabindrasapkota@gmail.com', 'test@1234567890')
body = '''
Dear {RECEIVER},
How are you? I Hope you are fine.
With Regards,
{SENDER}
'''
body_args = {'RECEIVER': 'Sir', 'SENDER': 'Rabindra Sapkota'}
attachment = ['C:/Users/rabindra/Desktop/image.jpg', 'C:/Users/rabindra/Desktop/SnapShotTestOnCluster.pdf']
my_mailer.send_mail(['071bex429@ioe.edu.np'], 'Test Mail', body, mail_body_args=body_args, attachments=attachment, mail_cc=['rabindrasapkota2@gmail.com'], mail_bcc=['testrabindrasapkota@esewa.com'])
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
Built Distribution
File details
Details for the file mailerpy-0.0.1.tar.gz
.
File metadata
- Download URL: mailerpy-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fae6edbf33cf4238bc63afdfdfebe76a7f2c468a648dd27ddc12ca63163be3c |
|
MD5 | 3d32e8c0c9920e5c928a9e094f4f6e8a |
|
BLAKE2b-256 | 0543fc08bfae07483f0c95839bfa9736f2a91cf5d6d074e952de6fe9d820d647 |
File details
Details for the file mailerpy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mailerpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2efc6f406c8368e4f09137a3a09b35b49e0de2ed7068b2aa98260808ae2bf54 |
|
MD5 | de46756c9db90ecfe87a1eaafbf43758 |
|
BLAKE2b-256 | fce9e9ba94c9699132640b1f3c914864b5d504433dbeb91708a59a11099c3d73 |