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

Can be installed fro pypi with pip install mailerpy

Example

from mailerpy 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.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

mailerpy-0.0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mailerpy-0.0.3.tar.gz.

File metadata

  • Download URL: mailerpy-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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

Hashes for mailerpy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 613e365ffa26c7d46d0b16a062d2b54e4f6de2f330c01756f9258050c6207d56
MD5 f5376fb06c9a582eb1095c935391c55b
BLAKE2b-256 47adf01d78a0a79db61811f75d539bfc457635981b2f31dff9758142488afb46

See more details on using hashes here.

File details

Details for the file mailerpy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mailerpy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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

Hashes for mailerpy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cde33427659fd828d475966bf8da64a5fcc48d6394145efe7be8e93fc6b52cd9
MD5 287c440ada1e490495918468c03f8f27
BLAKE2b-256 4602724118b7712a7b9eba8da489651025fd4d34b61667e253feefd386d490fc

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