Saravanan666/pypi-org huggingface dataset:
Package: emails
python-emailsModern python library for email.

Build message:

   >>> import emails
   >>> message = emails.html(html="<p>Hi!<br>Here is your receipt...",
                          subject="Your receipt No. 567098123",
                          mail_from=('Some Store', 'store@somestore.com'))
   >>> message.attach(data=open('bill.pdf'), filename='bill.pdf')

send message and get response from smtp server:

   >>> r = message.send(to='s@lavr.me', smtp={'host': 'aspmx.l.google.com', 'timeout': 5})
   >>> assert r.status_code == 250

and more:

 * DKIM signature
 * Render body from template
 * Flask extension and Django integration
 * Message body transformation methods
 * Load message from url or from file


Links
`````

* `documentation <http://python-emails.readthedocs.org/>`_
* `source code <http://github.com/lavr/python-emails>`_
Package: email-scraper
Theemail_scrapermodule provides a simple method that extracts email addresses from HTML. It is able to find emails
in plain text, links,atob()obfuscation and HTML entities obfuscation.Available onPyPI.Usage>>> from email_scraper import scrape_emails
>>> scrape_emails('<html><body><a href="mailto:hello@world.com">email me</a></body></html>')
{'hello@world.com'}
>>> scarpe_emails('<a href="javascript:window.location.href=atob(\'bWFpbHRvOmVtYWlsQGV4YW1wbGUuY29t\')">E-Mail</a>')
{'email@example.com'}
Package: emailsend
With this module you can easy send emails.INSTALATIONRun ‘py setup.py install’ or ‘python setup.py install’USAGESee example.py file.fromemailsendimportsendMailsendMail(fromAddress="sender email",toAddress="receiver email",mSubject="message subject",mBody="message body",mBodyHTML="message subject HTML",mAttachment=["massage","attachments","-","path","to","file","(optional)"],serverLogin="login to server (True/False)",serverServer="server URL",serverPort="server port (int)",serverTSL="TSL (True/False), serverUser = "serveruserame", serverPass = "serverpassword")
Package: emailsender
Features:HTML and/or TXT content.TLS support.Multiple attachments.Flood - send same mail multiple times through one connection.Installationpip install emailsenderUsage:emailsender -husage: emailsender [-h] [--host HOST] [--port PORT] --login LOGIN --password
                   PASSWORD [--sender SENDER] [--to TO] --subject SUBJECT
                   --text TEXT [--html HTML] [--tls] [--debuglevel DEBUGLEVEL]
                   [--attachments ATTACHMENTS] [--flood FLOOD]

Send email through specified SMTP server.

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           SMTP host (default: beta.debugmail.io)
  --port PORT           SMTP port (default: 9025)
  --login LOGIN         Auth login (default: None)
  --password PASSWORD   Auth password (default: None)
  --sender SENDER       Sender email address (default: john.doe@example.org)
  --to TO               Receiver email address (default: jane.doe@example.org)
  --subject SUBJECT     Email subject (default: None)
  --text TEXT           Email body (plain text) (default: None)
  --html HTML           Email body (html) (default: )
  --tls                 Use TLS if specified (default: True)
  --reply-to REPLY_TO   Reply-To field in email (default: None)
  --debuglevel DEBUGLEVEL
                        Debug level (default: 0)
  --attachments ATTACHMENTS
                        One or few files to attach (default: None)
  --flood FLOOD         Count of messages send (through one connection)
                        (default: 1)Usage example:emailsender --host="debugmail.io" --login="john.doe@example.org" --password="very secret" --subject="Test subject" --text="Test message" --html="<h1>Wow, so electronic, very mail</h1>"with attachments:emailsender --login="john.doe@gmail.com" --password="123123" --port="25" --host="debugmail.io" --text="Text content" --html="<h1>HTML content</h1>" --subject="test" --attachments="/tmp/attachment1.txt" --attachments="/tmp/attachment2.txt"LicenseThe MIT License (MIT)Copyright (c) 2015 Yuri ShikanovPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: emailservice
Simple Mail SenderThis email sender python package gives ease of acess to Python's built-in SMTP module. It supports plaintext and HTML based messages and only supports Python3 version.FeaturesReduces the configurations needed for built-in modules.Can send emails fetching from plain text or through HTML templates.TLS or SSL can be used to connect to the SMTP servers.InstallationpipinstallemailserviceUsageSending a simple plaintext messageplaintext='This is our text message'Create a EmailService object. The EmailService object allows you to connect to an SMTP server by specifying the server address and port, as well as your username and password.testEmailService=EmailService('username@server.com','password',('smtp.server.com',465),use_SSL=True)Now we set the plaintext message to the email's body.testEmailService.set_message(plaintext,"Subject",'John Doe <j.doe@server.com>')Set the recipients for your email by specifying a complete list/tuple of all the mentioned recipients.testEmailService.set_recipients(['recepient1@server.com','recepient2@server.com'])Here we connect to the SMTP server you specified when creating the EmailService object.testEmailService.connect()Below method sends the same message to all listed recipients. By default the connection to the SMTP server is closed once the email has been sent to all currently listed recipients. If you want to send further emails without having to reconnect to the SMTP server, you can make the close_connection as False as shown below.testEmailService.send_all(close_connection=False)Sending an HTML messageImport or write both a plaintext message and HTML message, stored in separate variables. This plaintext is only shown in cases where email clients do not support HTML markup.plaintext='This is our message'html='<b>This</b> is our message'Set the HTML and plaintext messages as the email's body.testEmailService.set_message(plaintext,"Subject line",'John Doe',html)Recommended SMTP server settingsOutlook:Using TLS: smtp.live.com, port 587Gmail:Using SSL: smtp.gmail.com, port 465Using TLS: smtp.gmail.com, port 587These connections may be blocked if 'Access for less secure apps' is disabled in your Google Account settings
Package: emails-gdpr
===============
emails-gdpr.. image::https://img.shields.io/pypi/v/emails-gdpr.svg:target:https://pypi.python.org/pypi/emails-gdpremails-gdpris a small package used for discovering emails (and its domains) from thunderbird client,
that you have never replied to.InstallationUse :code:pip install emails-gdprto installUsageUse :code:emails-gdprto run the applicationLicenseFree software: MIT licenseTODOCreate a way to simply change parameters via CLIAdd discovery of Data Protection Officer contact detailsAdd possibility to generate 'Right to be forgotten' letterCreate testsCreate GUICreditsThis package was created with Cookiecutter_ and theaudreyr/cookiecutter-pypackage_ project template... _Cookiecutter:https://github.com/audreyr/cookiecutter.. _audreyr/cookiecutter-pypackage:https://github.com/audreyr/cookiecutter-pypackage=======
History0.1.0 (14-01-2019)First release on PyPI.
Package: emailsms
Module for sending SMS via email SMS gateways. Requires an email account to
send from, and for the phone service provider of the recipient to be known.Email SMS gateways are unreliable at best. This is not a suitable method for
sending texts for any production use. This is, however, a free and easy way
to prototype SMS-based services.Usage>>> yahoo_smtp_server = "smtp.mail.yahoo.com"
>>> import emailsms
>>> import smtplib
>>> from_address = 'foo@gmail.com
>>> smtp = smtplib.SMTP(yahoo_smtp_server, 587)
>>> smtp.starttls()
>>> smtp.login(username, password)
>>> smtp = emailsms.gmail_smtp(from_address, 'password')
>>> emailsms.send(smtp, from_address, '0000000000', "Hi it's me", 'Verizon')
>>> print emailsms.carriersContributingPull requests welcome!https://bitbucket.org/socos_me/emailsmsAbout SocosSocos LLC is the only organization currently taking naturalistic student experiences as the basis for
assessments. The solution to improving education and the learning gap is to close the educational
loop, and provide relevant feedback to educators and parents on what they can do in naturalistic
setting to improve life-outcomes.Learn more athttp://www.socoslearning.com/
Package: emailSMS-python3
EmailSMS_PythonGateway between email and SMS/MMS for Python3.  Allows for two way communication between a server and mobile device.InstallationInstall requirements withpippipinstallemailSMS-python3UsagefromemailSMS.emailSMSimportManager# Initialize Manager Objectmanager=Manager(phone_num='XXXXXXXXXX',carrier="XXXX",email_address="EMAIL",email_password="PASSWORD")# Available Carriers["AT&T","Verizon","Sprint","TMobile","Boost","Cricket","Virgin Mobile","US Cellular"]# Sends an SMS to the configured phone with a subject line "Hello, World!"manager.send_sms("Hello, World!")# Sends an MMS to the configured phone with a subject line "Hello, World!"manager.send_mms("Hello, World!")#Returns an array of new (unread) messages from the configured phone.manager.check_incoming()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: email_split
Split an email address into its local and domain partsThis was built to grab the name used off of an email address. This library does not perform validation as we retrieve our email addresses from a trusted source.This wasinitially written in JavaScriptand has been ported to Python.Getting StartedInstall the module with:pip install email_splitfromemail_splitimportemail_splitemail=email_split('todd@underdog.io')email.local# toddemail.domain# underdog.ioDocumentationWe export the functionemail_splitfrom our moduleemail_split.email_split(email)Function that extracts local and domain parts of email address.emailstr- Email address to break downReturns:emailobject- Object representing email addresslocalstr- Leading portion of email addressFor example,toddintodd@underdog.iodomainstr- Tailing portion of email addressFor example,underdog.iointodd@underdog.ioWe chose the nameslocalanddomainbased off of the RFC specification formailto.https://tools.ietf.org/html/rfc5322#section-3.4.1ContributingIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test and lint via./test.sh.LicenseCopyright (c) 2016 Underdog.ioLicensed under the MIT license.
Package: email-stuff
email-stuffA package that allows to send emails via a number of different methods from within a python application. Adopted from ioe-email-stuff v0.0.13InstallationRun the following to install:python-mpipinstallemail-stuffUsagefromemail_stuffimportsend_email# Send an email - outlook only (for now).# CC, BCC, attachment and server args not required.# recipients, cc's and bcc's should be seperated by a semicolon, all in one string.send_email("SUBJECT","BODY","USERNAME","PASSWORD","RECIPIENTS",cc="CCs",bcc="BCCs",files=["./ATTACHMENT1.png"],server="smtp.outlook.com")# recommended way to handle errors is a try/except block:try:send_email("SUBJECT","BODY","USERNAME","PASSWORD","RECIPIENTS")exceptExceptionase:# do something with eprint(e)
Package: email-to
Email ToSimplyify sending HTML emailsFree software: MIT licenseDocumentation:https://email-to.readthedocs.io.Judgement rendered by:FeaturesThe built in Python modules for sending email are powerful, but require a lot of
boilerplate to write an HTML formatted email.fromemail.mime.multipartimportMIMEMultipartfromemail.mime.textimportMIMETextimportsmtplibmessage=MIMEMultipart('alternative')message['Subject']='Test'message['From']='user@gmail.com'message['To']='someone@else.com'message.attach(MIMEText('# A Heading\nSomething else in the body','plain')message.attach(MIMEText('<h1 style="color: blue">A Heading</a><p>Something else in the body</p>','html')server=smtplib.SMTP('smtp.gmail.com',587)server.starttls()server.login('user@gmail.com','password')server.sendmail('user@gmail.com','someone@else.com',message.as_string())server.quit()Withemail_tosending a simple email becomes much more succint.importemail_toserver=email_to.EmailServer('smtp.gmail.com',587,'user@gmail.com','password')server.quick_email('someone@else.com','Test',['# A Heading','Something else in the body'],style='h1 {color: blue}')email_toalso supports building a message up, line by line. This is
especially useful for monitoring scripts where there may be several different
conditions of interest.importemail_toserver=email_to.EmailServer('smtp.gmail.com',587,'user@gmail.com','password')message=server.message()message.add('# Oh boy, something went wrong!')message.add('- The server had a hiccup')message.add('- The power went out')message.add('- Blame it on a rogue backhoe')message.style='h1 { color: red}'message.send('someone@else.com','Things did not occur as expected')Additionally if the server details are not known at the beginning of the message,
that can be handled easily too.importemail_tomessage=email_to.Message('# Every thing is ok')message.add('Everything has been running fine for days.')message.add('Probably time to build something new and break everything')message.style='h1 { color: green }'server=email_to.EmailServer('smtp.gmail.com',587,'user@gmail.com','password')server.send_message(message,'someone@else.com','Things are awesome')CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-09-27)First release on PyPI.
Package: emailtools
emailtoolsA Python library for email suggestions and validations.InstallationInstall fromPyPIwith pip by typing in your favorite terminal:This will installpersian-names(for generating random names).pip install emailtoolsUsageLet's take a look at what an example test case would look like usingemailtools.Generate Random Emails:Note: You can use the name of email providers or their domains for the first argument.fromemailtoolsimportgenerate# generate('EmailProvider', 'FirstName', 'LastName', BirthYear)generate()# Generates a random email# Example: Reza.Mahmoudi_2023@yahoo.comgenerate('gmail')# Generates a random Gmail# Example: Jafari_Niloufar@gmail.comgenerate('gmail.com','Arash','Amiri')# Example: Amiri-Arash1@gmail.comgenerate('Outlook','Bita','Alipour',1995)# Example: BitaAlipour.1995@outlook.comSuggest Email Usernames:fromemailtoolsimportgenerateforiinrange(10):print(generate('Gmail','Saman','Rezaei',1980))# SamanRezaei@gmail.com# Rezaei_Saman_1980@gmail.com# Rezaei_Saman@gmail.com# RezaeiSaman_5@gmail.com# Saman_Rezaei_1980@gmail.com# Rezaei.Saman@gmail.com# RezaeiSaman7@gmail.com# Saman-Rezaei_1@gmail.com# Rezaei_Saman@gmail.com# Saman.Rezaei1980@gmail.comValidate Emails:fromemailtoolsimportvalidatevalidate('Anahita.Faramarzi@gmail.com')# Truevalidate('Fariborz_Jalali20.gmail.com')# Falsevalidate('Mohammadrezaei-Arash7@gmail')# FalseLicenseemailtoolsis available under theMIT license.
Package: email-to-telegram
Email to TelegramTelegram bot that reads a mail file and forwards to Telegram chat.
It has to be paired up with a mail server such asPostfix.
It can handle forwarding image attachments that are PNG or JPG.An Ansible role is available.https://github.com/ItsNotGoodName/ansible-role-email-to-telegramInstallationpip install email-to-telegramConfigurationCopy and editconfig.def.inito one of the following paths./etc/email-to-telegram/config.iniconfig.iniYou can get thechat_idfrom the web version of Telegram.https://stackoverflow.com/a/45577773Example systemd service file[Unit]
Description=Starts email-to-telegram
After=network.target

[Service]
User=telegram
ExecStart=email-to-telegram
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target
Package: emailvalidationio
Emailvalidation Python ClientEmailvalidation Python Client is the official Python Wrapper around the EmailvalidationAPI.InstallationInstall from pip:pipinstallemailvalidationioInstall from code:pipinstallgit+https://github.com/everapihq/emailvalidation-python.gitUsageAll emailvalidation API requests are made using theClientclass. This class must be initialized with your API access key string.Where is my API access key?In your Python application, importemailvalidationioand pass authentication information to initialize it:importemailvalidationioclient=emailvalidationio.Client('API_KEY')Retrieve Statusprint(client.status())Validate Email Addresshttps://emailvalidation.io/docs/inforesult=client.info('john@doe.com')# result = client.info('john@doe.com', catch_all=1)print(result)Contact usAny feedback? Please feel free tocontact our team.
Package: email_verification_task_ForagerAI
Email VerificationDescriptionThis project is a FastAPI application designed to interact with the Hunter.io API. It provides functionality to verify email addresses and search emails by domain, with CRUD operations for managing the results. The application stores results in a local variable and is structured to demonstrate basic API interaction and data handling in FastAPI.FeaturesEmail verification using Hunter.io APISearch for emails associated with a domainCRUD operations for managing email verification resultsLocal storage of verification resultsAsynchronous request handlingInstallationInstall this package usingpip:pipinstallemail_verification_task_ForagerAIOr install using poetry:poetryaddemail_verification_task_ForagerAIUsageAfter installation, you can use it like this:importemail_verification_task_ForagerAIAPI EndpointsPOST /verify-email: Verifies the email address.POST /search-email: Search for email addresses by domain.POST /email-results/: Create a result entry for an email address or domain.GET /email-results/{identifier}: Retrieve a specific verification result by email or domain.PUT /email-results/{identifier}: Update a specific verification result.DELETE /email-results/{identifier}: Delete a specific verification result.ConfigurationThe application can be configured through environment variables. Here are the available configurations:API_KEY: Your Hunter.io API key.ContributingContributions to this project are welcome. Please ensure to follow the code of conduct and coding standards of the project.
Package: email-verifier
python-email-verifier===================The simplest possible way to verify an email address in Python.Meta----- Author: WHOIS API, Inc.- Email: support@whoisxmlapi.com- Site: https://emailverification.whoisxmlapi.com/Prerequisites-------------To use this library, you'll need to create a free Email Verification API account:https://emailverification.whoisxmlapi.com/If you haven't done this yet, please do so now.Documentation-------------Documentation available `here <https://emailverification.whoisxmlapi.com/docs>`_.Installation------------To install ``email-verifier`` using `pypi <https://pypi.org/>`_, simply run:.. code-block:: console$ pip install email-verifierIn the root of your project directory.Usage-----Once you have `email-verified` installed, you can use it to easily verify anyemail address... code-block:: pythonfrom emailverifier import Clientfrom emailverifier import exceptionsclient = Client('Your-api-key')try:data = client.get("support@whoisxmlapi.com")except exceptions.HttpException:# If you get here, it means service returned HTTP error codepassexcept exceptions.GeneralException:# If you get here, it means you cannot connect to the servicepassexcept exceptions.UndefinedVariableException:# If you get here, it means you forgot to specify the API keypassexcept exceptions.InvalidArgumentException:# If you get here, it means you specified invalid argument# (options should be a dictionary)passexcept:pass# Something else happened related. Maybe you hit CTRL-C# while the program was running, the kernel is killing your process, or# something else all together.print(data)# Use data.json_string to get raw data in JSON.# You can access any response field as a class property# by converting field name from "camelCase" to "snake_case"print("Email address: " + data.email_address)print("Format: " + str(data.format_check))print("DNS: " + str(data.dns_check))print("SMTP: " + str(data.smtp_check))print("Catch all: " + str(data.catch_all_check))print("Disposable: " + str(data.disposable_check))print("Free: " + str(data.free_check))print("Last audit date: " + str(data.audit.audit_updated_date))Here's the sort of data you might get back when performing a email verificationrequest:.. code-block:: json{"emailAddress": "support@whoisxmlapi.com","formatCheck": "true","smtpCheck": "true","dnsCheck": "true","freeCheck": "false","disposableCheck": "false","catchAllCheck": "true","mxRecords": ["ALT1.ASPMX.L.GOOGLE.com","ALT2.ASPMX.L.GOOGLE.com","ASPMX.L.GOOGLE.com","ASPMX2.GOOGLEMAIL.com","ASPMX3.GOOGLEMAIL.com","mx.yandex.net"],"audit": {"auditCreatedDate": "2018-04-19 18:12:45.000 UTC","auditUpdatedDate": "2018-04-19 18:12:45.000 UTC"}}
Package: emailx
# emailx: easy as hell email sending for pythonInstall like this:pip install emailxUse like this:from emailx import Email, smtp_connectionSMTP = 'smtp.example.com'LOGIN = ('alex', 'password123')dummy_recipients = 'Alex <alex+testing@example.com>'with smtp_connection(SMTP, LOGIN) as c:e = Email(source='Alex <alex@example.com>',subject='Hello',body='Body',html_body='<html>Body</html>',to_addresses='Bobby <bobby@example.com',bcc_addresses='Kim <kim@example.com>',attachments={'a.csv': csv_data})c.send(e)
Package: emailz
emailzeasy use for send emailsInstallpip install emailzSimple Usefrom emailz import email

email.config(user='ivan-me@163.com',password='***')
email.send(subject='Test', body='hi,\n,it's a test',receivers=['han_zhichao@sina.cn'])Use HTMLemail.send(subject='Test', html='<h2>hi,it's a test</h2>',receivers=['han_zhichao@sina.cn'])Use Template fileemail.send(subject='Test', template='tpl.html',receivers=['han_zhichao@sina.cn'])With attachmentsemail.send(subject='Test', attachments=['tpl.html'],receivers=['han_zhichao@sina.cn'])ToDoSmtp Server mapping@email decoratorstrigger, crontab or more featurestheme and templates to choose