

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',
no_reply='noreplay@example.com',
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
print(mail.status)
if mail.status:
pass
else:
pass
Send Multi Files
mail.send(receiver='someone@example.com',
subject='TEST',
message='HI, This Message From Python :)',
image='img.jpg',
audio='sound.mp3',
file='file.zip')
Settings Method
mail.settings(repeat=1,
sleep=0,
provider=mail.GMAIL,
multi=False)
Send Multi Emails
mail.settings(multi=False)
mail.settings(multi=True)
mail.send(receiver=['someone@example.com', 'someone1@example.com'],
subject='TEST',
message='HI, This Message From Python :)')
Counter Variables
print('CC count:', mail.count_cc)
print('BCC count:', mail.count_bcc)
print('Receivers count:', mail.count_rec)
print('Messages count:', mail.count_msg)
Example Function
from mailer import example
example()
About Method
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 :) 🌸
🌸