Saravanan666/pypi-org huggingface dataset:
Package: maildirproc
maildirproc is a program that processes one or several existing mail boxes in the maildir format. It is primarily focused on mail sorting – i.e., moving, copying, forwarding and deleting mail according to a set of rules. It can be seen as an alternative to procmail, but instead of being a delivery agent (which wants to be part of the delivery chain), maildirproc only processes already delivered mail. And that’s a feature, not a bug.
Package: maildirproc-python2
maildirproc is a program that processes one or several existing mail boxes in the maildir format. It is primarily focused on mail sorting – i.e., moving, copying, forwarding and deleting mail according to a set of rules. It can be seen as an alternative to procmail, but instead of being a delivery agent (which wants to be part of the delivery chain), maildirproc only processes already delivered mail. And that’s a feature, not a bug.
Package: maildiscover
maildiscoverSimple python library for email connection parameters discoveryWhat for?This library aims to provide a simple way to retrieve email configuration
parameters (forSMTP/submission,POP3andIMAPservers). Currently, it
does so implementing theautoconfigMozilla protocol and a specialdnslookup.NOTE: I also considered trying to implement theautodiscoverflow from
Microsoft, but I wasn't able to make it work.How to use it?Install its latest version from pypipipinstallmaildiscoverThen, import it into your project. You can either use the providedgetfunction, that tries all the known methods and returns a merged version of the
found data:importmaildiscoverresult=maildiscover.get("myself@example.com")Or you can use any specific method independentlyimportmaildiscoverdns_method=maildiscover.DNSSRV("myself@example.com")ac_method=maildiscover.Autoconfig("myself@example.com")dns_result=dns_method.get()ac_result=ac_method.get()The method may raise, either if it fails (in such case they raiseMethodFailed) or if the provided email is malformed, then they raiseMaformedEmail.In case of success, the returned data is a custom dataclass, that can be
converted back to a dict with theto_dictmethod, with self-explaining
fields.ContactsIf you want to suggest a change or propose a patch, don't hesitate to drop me an
email atblallo -|AT|- autistici.org. I am friendly :)
Package: maildocker
This library allows you to quickly and easily send emails through
Maildocker using Python.Exampleimportmaildockermd=maildocker.MaildockerClient(api_key='0cc175b9c0f1b6a831c',api_secret='92eb5ffee6ae2fec3ad')message=maildocker.Mail(mail_from='Maildocker <maildocker@ecentry.io>',to='John Snow <john.snow@thrones.com>',subject='maildocker-python-library',text='**{{system}}** ({{url}})',merge_vars={'system':'Maildocker','url':'http://maildocker.io'},attachments=[{'name':'plaintext.txt','type':'text/plain','content':'dHN0'},'spreadsheet.xls'])http_status,response=md.send(message)# ORmessage=maildocker.Mail()message.set_from('Maildocker <maildocker@ecentry.io>')message.add_to('John Snow <john.snow@thrones.com>')message.set_subject('maildocker-python-library')message.set_text('**{{system}}** ({{url}})')message.add_vars({'system':'Maildocker','url':'http://maildocker.io'})message.add_attachment([{'name':'plaintext.txt','type':'text/plain','content':'dHN0'},'spreadsheet.xls'])http_status,response=md.send(message)
Package: mailDropper
mailDropper is designed to:Send bulk emailsWith a provision of variable email parameters such as - recipient name, subject and contentHow does maildropper work?Log valid sender credentials.Run the mailDropper script for the email recipients data.Parses dataset(csv format) of columns:EMAIL|NAME|SUBJECT|CONTENTand invokessendmailfor each record.The objective is to compose a customized email and drop it into recipient’s inbox. Never spam!
Package: maildump
MailDump is a python-based clone of the awesomeMailCatchertool. Its
purpose is to provide developers a way to let applications send emails
without actual emails being sent to anyone. Additionally lazy developers
might prefer this over a real SMTP server simply for the sake of it
being much easier and faster to set up.FeaturesSince the goal of this project is to have the same features as
MailCatcher I suggest you to read its readme instead.However, there is one unique feature in MailDump: Password protection for
the web interface. If your MailDump instance is listening on a public IP
you might not want your whole company to have access to it. Instead you can
use an Apache-style htpasswd file. I have tested it with SHA-encrypted
passwords but you can use any encryption supported bypasslib.apache.UsageAfter installing maildump, runmaildump--helpfor a list of available
command line arguments.  By default maildump runs its webserver on port
1080 and its SMTP server on port 1025 (both only available via localhost).
Unless you specify a database file, received mails are lost when maildump
terminates.CreditsThe layout of the web interface has been taken from MailCatcher. No
Copy&Paste involved - I rewrote the SASS/Compass stylesheet from
MailCatcher in SCSS as there is a pure-python implementation of SCSS
available. If whoever reads this feels like creating a new layout that
looks as good or even better feel free to send a pull request. I’d
actually prefer a layout that differs from MailCatcher at least a little
bit but I’m somewhat bad at creating layouts!The icon was created byTobia Crivellari.LicenseCopyright © 2013-2020 Adrian Mönnich (adrian@planetcoding.net). Released
under the MIT License, seeLICENSEfor details.
Package: mailengine
Mail EngineMail Engine is a tool that sends emails. It is beginner-friendly and can send Plane Text and Rich Text (RTF) mails easily. It can also send One Time Password (OTP).Functionsgenrator.num(6)Generate a number and can be used for sending  One Time Password (OTP) on email
we can put any numbersendmail.genscript('rtf','main.py')Generates Rich Text Formate (RTF) script.
In case you don't want to write codesendmail.genscript('rtf','main.py')Generates Plane Text Formate script.
In case you don't want to write codesendmail.mail(port,server,send_mail,receive_mail,password,message)Send Plane Text Emailsendmail.sendmailrtf(port,server,send_mail,receive_mail,password,message,subject>Send Rich Text Mail. Use HTML onlyUsage :For Generating Script Use:from mailengine import sendmail

# genrate script with rich text formate 
sendmail.genscript('rtf','main.py')Sending Plain Text Mail:frommailengineimportsendmailport=587send_mail="sender email"receive_mail="receiver email"password="password"server="smtp.gmail.com"#servermessage="""\Subject: SubjectThis mail was sent using mailengine (python). Add your content here, this tool >"""sendmail.mail(port,server,send_mail,receive_mail,password,message)Sending Rich Text  Mail:fromgenOTPimportsendmailport=465send_mail="sender email"receive_mail="receiver email"password="password"server="smtp.gmail.com"#serversubject="subject"message="""<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat"><style type="text/css" media="screen">body {font-family: "Montserrat", sans-serif;}hr {width: 935px;color: rgb(80, 61, 61);margin: 0px 0px 0px 105px;opacity: 0.25}</style></head><body><h1 style="color:#00466a; margin:91px 0px 15px 101px;">Test Mail</h1><hr><div style="margin: 31px 0px 0px 105px;"><p>Hi,<br>This mail was sent using mailengine (python).Add your content here, this tool can send mail and OTP</p><br>Regards,<br>Your Brand</div><div style="margin: 91px 0px 0px 800px; font-size: 80%; opacity: 0.50;"><p>Your Brand Inc</p><p>8010 Somewhere</p><p>InTheWorld</p></div></body></html>"""sendmail.sendmailrtf(port,server,send_mail,receive_mail,password,message,subject)
Package: mailer
Here are some of the features:Single class to send plain text, HTML email, and attachmentsAuto detects attachment typesSupport for internationalized headersChanges in version 0.3The API for Mailer.To is changed. Use a string to specify a single recipient,
and an iterable to specify more than one.Changes in version 0.4You can now specify the port in Mailerfrom mailer import Mailer
sender = Mailer('smtp.example.com', port=20)Changes in version 0.5Message.attach takes an optional cid argument.You can now send HTML emails with attachmentsThanks to Douglas Mayle for his patch for this.Changes in version 0.6Can now select portSupports gmailChanges in version 0.7You can now specify MIME type:msg.attach("picture.png", mimetype="image/png")Changes in version 0.8Various bug fixesExamplesSending an HTML email:from mailer import Mailer
from mailer import Message

message = Message(From="me@example.com",
                  To="you@example.com",
                  charset="utf-8")
message.Subject = "An HTML Email"
message.Html = """This email uses <strong>HTML</strong>!"""
message.Body = """This is alternate text."""

sender = Mailer('smtp.example.com')
sender.send(message)Sending an attachment:from mailer import Mailer
from mailer import Message

message = Message(From="me@example.com",
                  To=["you@example.com", "him@example.com"],
                  Subject="Cute Cat")
message.Body = """Kittens with dynamite"""
message.attach("kitty.jpg")

sender = Mailer('smtp.example.com')
sender.send(message)Tested with Python 2.4, 2.5, and 2.6
Package: mailerlite-python
mailerlite-pythonmailerlite-python is an API wrapper for MailerLite, written in PythonInstallingpip install mailerlite-pythonUsagefrom mailerlite.client import Client
client = Client('API_KEY')SubscribersList Subscriberssubs = client.list_subscribers(params=None)
# Optional params (dict):
# filter[status] = Must be one of the possible statuses: active, unsubscribed, unconfirmed, bounced or junk.
# limit = Defaults to 25
# page = Defaults to 1Create Subscribersubscriber = {
    "email": "carlos@burgos.com",
    "fields": {
        "name": "Carlos",
        "last_name": "Burgos",
        "city": "Bogotá",
    }
}
sub = client.create_subscriber(subscriber)
# If user email already exists, updates existing subscriber.Fetch Subscriber# Reference can be either email or ID
subscriber = client.fetch_subscriber(reference)Delete Subscriberclient.delete_subscriber(subscriber_id)Subscribe Subscriberclient.activate_subscriber(subscriber_id)Unsubscribe Subscriberclient.unsubscribe_subscriber(subscriber_id)Assign Subscriber to a Groupclient.assign_to_group(subscriber_id, group_id)List Subscriber fieldsfields = client.list_subscriber_fields()List Groupsgroups = client.list_groups(params=None)
# Optional params (dict):
# filter[name] = Returns partial matches
# limit = An account can have at most a 250 groups
# page = Defaults to 1
# sort = Can be one of: name, total, open_rate, click_rate, created_at. Defaults to ascending order; prepend (-)WebhooksList all webhookswebhooks = client.list_webhooks()Create webhookwebhook = {
    "name": "first webhook",
    "events": ["subscriber.created"],
    "url": "http://www.cartwright.info/eligendi-soluta-corporis-in-quod-ullam"
}
webhook_created = client.create_webhook(webhook)Delete webhookclient.delete_webhook(webhook_id)
Package: mailer-otphero
mailerSetup DNS and install:pipinstallmailer-otpheroand then send email using SMTP which scores 10/10 at mail-tester.com like thisfrommailer_otpheroimportMailerm=Mailer(host='smtp.google.com',port=465,user='your@email.com',password='secret')m.send(subject='Ping?',from_='your@email.com',to='other@email.com',content='Hello, world')How to setup DNSAdd these records to your DNS to make Spamassassin, Google and others happy:_dmarc.YOURDOMAINwith value likev=DMARC1; p=none(or more strict - TODO: link )mail._domainkey.YOURDOMAINwith your DKIM value@TXT record with your SPF valueObviously your domain must haveMXrecords.NB:YOURDOMAINis one from which you're trying to send egemail.comin the example above.Release new versionpython setup.py sdist && \
twine upload dist/*
Package: mailerpy
MailerUtility For Handling MailsIt 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 mailInstallationpip install mailerpyExamplefrom mailerpy import Mailermy_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'])
Package: mailez
A package to make sending mails to multiple people while adding their names to each message automaticly easy. I tested it with Gmail but it might work with some other e-mail service providers.
Usage:from mailez import functions as mz
my_gmail_address = "supercoolemailofsupercoolperson@gmail.com"
my_password = "heyheyheyiamverycool12345"
my_subject = "Asking How The Recipient Is Feeling At The Moment"
my_csv_path = "path/to/csv/file.csv"
my_message = "Dear {name},\nHow are you?"
obj = mz.Mail(my_gmail_address, my_password, my_subject, my_csv_path, my_message)
obj.Send()The format for CSV file is given below:email,name
supercoolguy@coolmail.com,Jake Peralta
anothersupercoolguy@mail.com,Joey Tribbiani
supercoolbusinessmail@coolbusiness.com,CoolBusiness LTD.
Package: mail-Generator
Mail-generatorDescriptionMail-Generatoris a Python package that provides an easy-to-use interface for creating and managing  email addresses using theMailSlurp API. WithMail-Generator, you can quickly create new email addresses, read emails from an inbox, and more.Installationpipinstallmail-generatorUsage# Import the MailGenerator classfrommail_generatorimportMailGenerator# Create a MailGenerator object with your MailSlurp API keyclient=MailGenerator(<api_key>)You can find your MailSlurp API keyhere.FeaturesCreate an email addressemail_id=client.create_email()#  Returns the ID of the email address created.print(email_id+"@mailslurp.com")Get emails from an inboxemails=client.get_email_data(email_id)# Returns a list of emails in the inbox.Example:[
    {
        'id': 'adde245b-fa00-48cd-8a31-77f42737006e',
        'domain_id': None,
        'subject': 'Test',
        'to': ['example@mailslurp.com'],
        '_from': 'example@email.com',
        'bcc': [],
        'cc': [],
        'created_at': datetime.datetime(2023, 7, 13, 11, 28, 7, tzinfo=tzutc()),
        'read': True,
        'attachments': [],
        'body': '<div dir="ltr">Hello World<br></div>\r\n'
    }, 
    {
        'id': 'ede7bb4f-8a47-4631-9ca1-78389a55cced',
        'domain_id': None,
        'subject': 'Hi there',
        'to': ['example@mailslurp.com'],
        '_from': 'example@email.com',
        'bcc': [],
        'cc': [],
        'created_at': datetime.datetime(2023, 7, 13, 11, 29, 33, 473000, tzinfo=tzutc()),
        'read': True,
        'attachments': ['1689251504-9e7166b2-b96c-44cd-8e2a-95500df5c0ac'],
        'body': '<div dir="ltr">This is also a hello world<br></div>\r\n'
    }
]
Package: mailgun
Python wrapper for MailGun REST APIDocumentation:=============Please visit our documentation page athttp://documentation.mailgun.netInstallation============There are two ways to install Mailgun API:1. sudo python setup.py install2. Grab mailgun.py from the 'lib' folder of this repo and place it on your PYTHONPATH manuallySamples tryout:===================> ./run_sample.sh samples/creating-routes.py> ./run_sample.sh samples/sending-mail.py> ./run_sample.sh samples/using-mailboxes.pyGetting started:================from mailgun import Mailgun, MailboxMailgun.init("my-api-key", "https://mailgun.net/api")for mailbox in Mailbox.find():print "{0} has size of {1}".format (mailbox.id, mailbox.size)For more visit http://documentation.mailgun.net--MG team
Package: mailgun2
python-mailgun2Originally athttps://github.com/ZeroCater/python-mailgun2A super simple Python API for interacting withMailgun. Currently
only supports sending messages. Powered byRequests.Installationpipinstallmailgun2Usagefrommailgun2importMailgunmailer=Mailgun('example.mailgun.org','public_key','private_key')mailer.send_message('from@yourdomain.com',['to@you.com','others@you.com'],subject='Hi!',text='Sweet.')Required arguments:from_email: string of email address to set as sender
to: list or string of email address to send toOptional arguments:subject: string subject of the email
text: string body of the email. Either text or html is required.
html: string HTML of the email. Either text or html is required.
cc: list of cc addresses.
bcc: list of bcc addresses.
tags: list of mailgun tags to associate with the email.
reply_to: Convenience argument for setting the Reply-To header
headers: Extra headers for messages
inlines: List of file paths to attach inline to the message
attachments: List of (file name, content type, file handle) as a multipart attachmentContributingSeeContributingPull requests welcome!
Package: mailgun3
python-mailgun2===============[![Code Climate](https://codeclimate.com/github/ZeroCater/python-mailgun2/badges/gpa.svg)](https://codeclimate.com/github/ZeroCater/python-mailgun2)[![Dependency Status](https://gemnasium.com/ZeroCater/python-mailgun2.svg)](https://gemnasium.com/ZeroCater/python-mailgun2)A super simple Python API for interacting with [Mailgun](http://www.mailgun.com/).Currently only supports sending messages. Powered by[Requests](http://docs.python-requests.org/en/latest/).Python 3 support should be there but is currently untested.Installation:```shellpip install mailgun2```Usage:```pythonfrom mailgun2 import Mailgunmailer = Mailgun('apikey', 'example.mailgun.org')mailer.send_message('from@yourdomain.com',['to@you.com', 'others@you.com'],subject='Hi!',text='Sweet.')```Required arguments:```from_email: string of email address to set as senderto: list or string of email address to send to```Optional arguments:```subject: string subject of the emailtext: string body of the email. Either text or html is required.html: string HTML of the email. Either text or html is required.cc: list of cc addresses.bcc: list of bcc addresses.tags: list of mailgun tags to associate with the email.reply_to: Convenience argument for setting the Reply-To headerheaders: Extra headers for messagesinlines: List of file paths to attach inline to the messageattachments: List of (file name, content type, file handle) as a multipart attachment```Pull requests welcome!
Package: mailgun3-python
mailgun3_pythonPython client for mailgun.For detail:Here is DocumentationInstallpipinstallmailgun3_pythonSet API KEY from docsumo setting page as env variableMAILGUN_API_KEY&MAILGUN_DOMAINor pass apikey parameter in Mailgun class.exportMAILGUN_API_KEY="key-c-fgrt456">>~/.bashrcexportMAILGUN_DOMAIN="example.com">>~/.bashrcsource~/.bashrcExamplefrommailgunimportMailgunmailgun=Mailgun()# send email with attachmentmailgun.send_message("Text, <test@gmail.com>","bkrm.dahal@gmail.com","Docsumo: Automate invoice data capture at Docsumo",'Hi, welcome to docsumo.',files=['./invoice.pdf'])# send message with saved templatemailgun.send_message_template("Text, <test@gmail.com>","bkrm.dahal@gmail.com","Docsumo: Automate invoice data capture at Docsumo","welcome_email",{"company_name":"docsumo","first_name":"bikram"})
Package: mailgun-cli
mailgun-clicontrol mailgun account using cli and python apiFeatureseasily create routes for 1-on-1 forwarding mail using a csv file or Google SpreadsheetUsagesCLIset the mailgun api key# bash shell$exportMAILGUN_API_KEY[yourprivateAPIkey]# fish shell$set-XMAILGUN_API_KEY[yourprivateAPIkey]You could permanently set it in~/.bash_profileor~/.config/fish/config.fishlist all routes$mailgunroutesforward using a csv$mailgunforward"https://docs.google.com/spreadsheets/d/e/2PACX-1vQX-8YPc7Dja4jn3u0E5MzGdEOPxB9OEI2kDzO_7c-CLpGQ5g8LdPO2W9f6tETrVyBBZvWx3qNAMwPa/pub?output=csv"install$ pip install mailgun-cli✨🍰✨Forward templeteGoogle Spreadsheet,Here is a templete.First publish your Google sheet to the web by going to File > Publish to the web...Choose the tab you want, then select Comma-separated values (.csv) as the export formatGrab the URLLearning Pathhttps://codingdose.info/2018/08/02/develop-and-publish-with-poetry/
Package: mailhound
Installationpipinstallmailhoundorgitclonehttps://github.com/null3yte/mailhound.gitcdmailhound
pipinstall.ConfigurationAfter installation, Mailhound can function without requiring API keys, but configuring API keys is necessary for better
results.mineleadhuntersnov# $HOME/.config/mailhound/providers.yamlminelead_key:'API_KEY'hunter_key:'API_KEY'snov_up:'username:password'Usagemailhound-husage:mailhound[-h][-s]domain

positionalarguments:domainsite.com

options:-h,--helpshowthishelpmessageandexit-s,--sitemapBurpSuitesitemap
Package: mailinator-public-api
Mailinator Public APIPython wrapper for mailinator's public api. This library scrapes mailinator's websockets api and gives an abstraction layer for basic operations such as viewing the inbox, email's content and removing them.This means that this will allow you to to view and remove emails from public inboxes ofhttps://www.mailinator.comwithout the need of a headless browser. Notice there is a limit for removing emails.UsageI hope it is simple enough.frommailinatorapiimportPublicInboxinbox=PublicInbox("carlos")print(inbox.web_url)# Iterate over the emails and print some infoforemailininbox:print(email.from_address)print(email.from_name)print(email.subject)print(email.seconds_ago)print(email.text)print(email.html)print([f"{link.text}:{link.url}"forlinkinemail.links])# remove the last emailemail=inbox.get_lastest_email()print(email.from_address)ok,msg=email.remove()ifok:print("Removal successful! ",msg)else:print("Removal failed! ",msg)You can access the raw json response for the email object withemail.json.
Package: mailinator-python-client
Python Client for the Mailinator Email Systemhttps://www.mailinator.comUsage:Creating a client:from mailinator.client import MailinatorClient
client = MailinatorClient('token here')Getting all domains:from mailinator.domain.interface import DomainsInterface

domains_interface = DomainsInterface()
domains = client.request(domains_interface)
for d in domains:
    print(d)Get a single domain (by id):from mailinator.domain.interface import DomainInterface

domain_interface = DomainInterface(domain_id='hello.m8r.co')
domain = client.request(domain_interface)Get an inbox:from mailinator.message.interface import InboxInterface

inbox_interface = InboxInterface(domain_id='hello.m8r.co', inbox_id='test')
inbox = client.request(inbox_interface)

for msg in inbox.msgs:
    print(msg)