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

Installation

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.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

mailerpy-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mailerpy-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.4 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for mailerpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa9f7fca976446917114a51ace9ad9d90ed1db2967103463712ba8f0c69927c3
MD5 3b2a40cab508a4be9f6beddb34c2d37d
BLAKE2b-256 b96af4e8a875a7ec50278c6902e90a7cd43be9c14f651e483a235eee77a707e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mailerpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.4 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for mailerpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cdf03a3e5029023cdd5a018b11735a4fa5631c7fcad5e9d6964f130d25dbc8e
MD5 52c3ae628113ebf432e370df6c7ce341
BLAKE2b-256 aeb87b0f3ced5a5b16f98c9babd564ae704426881d9f283a0809eb9ec3d2b1ff

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