Skip to main content

image

Downloads Downloads Downloads

Description

This Module help you to send fast Email. 🌸

And you can attach image, audio, and other files easily.

The Module support Gmail And Microsoft right now, but in the nearly future will support other mail services.

Installation:

pip install quick-mailer

-->> GitHub Link

Usage:

Send Message

from mailer import Mailer

mail = Mailer(email='someone@gmail.com',
              password='your_password')

mail.send(receiver='someone@example.com',  # Email From Any service Provider
          no_reply='noreplay@example.com', # Redirect receiver to another email when try to reply.
          subject='TEST',
          message='HI, This Message From Python :)')

Parameters

receiver: Email Address as String or List.                [Required]
cc: Email Address as String or List.  (Carbon Copy)       [Optional]
bcc: Email Address as String or List. (Blind Carbon Copy) [Optional]
sender_name: Set Sender name.                             [Optional]
receiver_name: Set receiver name.                         [Optional]
no_reply: Set Another Email To Reply                      [Optional]
subject: Message Title.                                   [Optional]
message: Your Message.                                    [Optional]
image: Image File Name.               (Image Path)        [Optional]
audio: Audio File Name.               (Audio Path)        [Optional]
file: File Name.                      (Any File Path)     [Optional]

Check Send Status

# Using (status) Attribute 
print(mail.status)

# Example For One Receiver:
if mail.status:
  pass
else:
  pass
  
 # Note:
 # IF You Put List Emails Receivers
 # Variable Will Return Dictionary Results.
 
 # IF You Allowed Repeat
 # The Attribute Will provide Results List.

Send Multi Files

mail.send(receiver='someone@example.com',  # Email From Any service Provider
          subject='TEST',
          message='HI, This Message From Python :)',
          image='img.jpg',      # Image File Path
          audio='sound.mp3',    # Audio File Path
          file='file.zip')      # Any File Path

Settings Method

mail.settings(repeat=1,             # To Repeat Sending
              sleep=0,              # To Sleep After Send Each Message
              provider=mail.GMAIL,  # Set Maill Service
              multi=False)          # Default False, If You Set True
                                    # Message Will Sent 4 Each Email Alone
                                    # Else Will Sent To All Together

Send Multi Emails

# One By One:
mail.settings(multi=False)

# In Same Message:
mail.settings(multi=True)

mail.send(receiver=['someone@example.com', 'someone1@example.com'],
          subject='TEST',
          message='HI, This Message From Python :)')

Counter Variables

# CC Receivers Count
print('CC count:', mail.count_cc)

# BCC Receivers Count
print('BCC count:', mail.count_bcc)

# Receivers Count
print('Receivers count:', mail.count_rec)

# Messages Count
print('Messages count:', mail.count_msg)

Example Function

from mailer import example

example()

About Method

# You Can Use (mail.about) Method for more info.
mail.about()

Changelogs

2022.2.10 update:

  • Fix issue #3 TypeError on python < 3.10

2022.2.2 update:

  • Support Html Message
  • Fix issue #1 TypeError on python < 3.10

Follow Me on Instagram: @9_Tay. 🌸

Thank You :) 🌸

🌸

Metadata

Release files for quick-mailer 2022.2.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quick-mailer 2022.2.22
File Size Uploaded
quick-mailer-2022.2.22.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quick-mailer 2022.2.22
File Interpreter ABI Platform
quick_mailer-2022.2.22-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / quick-mailer-2022.2.22.tar.gz

Download URL quick-mailer-2022.2.22.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8466d37bf596f5b103e190e29b5e78b31bda0ab3c01458b4cfb88552507932
BLAKE2b-256 checksum
How to use checksums
7d80036af2343e8d33973a73b5f847c068cb3d61ed8af14203b8d316a711bd0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / quick_mailer-2022.2.22-py3-none-any.whl

Download URL quick_mailer-2022.2.22-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
190a1ef760147adcc04ebca4dbbb78d847765c4b8f7583af55e4df0768917654
BLAKE2b-256 checksum
How to use checksums
139f5babc885ab684387e31a62f191564d0a016f8e084930aeb882013832741d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release history Release notifications | RSS feed

This release

2022.2.22 This release

2 release files

0.1.0

2 release files

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page