Skip to main content

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

mailerpy-0.0.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

mailerpy-0.0.1-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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