This Module help you to send fast Email.🌸
Project description
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
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
subject='TEST',
message='HI, This Message From Python :)')
Check Send Status
# Uaing (status) Variable
print(mail.status)
# Example:
if mail.status:
pass
else:
pass
Parameters
receiver: Email Address as String or List. [Recuired]
cc: Email Address as String or List. (Carbon Copy) [Optional]
bcc: Email Address as String or List. (Blind Carbon Copy) [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]
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 :)',
image='img.jpg', # Image File Path
audio='sound.mp3', # Audio File Path
file='file.zip') # Any File Path
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()
Follow Me on Instagram: @9_Tay.
Thank You :)🌸
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quick-mailer-0.1.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for quick_mailer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b9169c20d26894241104ad039dc8bceb2073745f5caded96a903cf2970f00e |
|
MD5 | 309b0618c67ab70c499d34933486f547 |
|
BLAKE2b-256 | 2d41b2fc109811a46d192d94f0883954788c92b63ece7f9926e702823a78c5aa |