Skip to main content

Python Native Automation Package Library

Project description

pynapl

Python Native Automation Package Library

The Tastiest Code You May Ever Consume

Overview

pynapl is the conglomeration of useful tactics that I have made work for my personal and professional automation. The hope is for pynapl to evolve and become something more (someday - Exeggutor!!!).

Details

pynapl.send_mail()

This is a script to send out an HTML email.

pynapl.send_mail(send_from, send_to, text=''' This email was sent via a Python Script, using PYNAPL

   \/
  \||/
  \||/
 <><><>
<><><><>
<><><><>
 <><><>

''', subject="An email from PYNAPL", files=None, server="smtp.gmail.com", port="465", password="Email Password")

This is a script to send out an HTML email.

Optionally, you can attach files and send them as well.

Below is an example email you might send to someone using the HTeMaiL function 'send_mail'

''' This email was sent via a Python Script, using PYNAPL

      \/
     \||/
     \||/
    <><><>
   <><><><>
   <><><><>
    <><><>

body = "Send a file with this email"

  • The subject that you want for your email - DEFAULT "Default Subject" subj = "Your Email Subject"

    1. Get your signature by opening email you sent > Right click on signature > Inspect Element >
    2. Find div of gmail_signature > Right Click > Copy OuterHTML signature = ''' some really really really long html path (4000 + characters in my case) '''
  • Any attachments to send, default NONE attachments = ["myfile.txt", "yourfile.txt"]

  • Call the function send_mail(me, them, "{} {}".format(body, signature), subj, files=attachments)

NEVER TESTED ON REAL FRUIT

No warranties. No guarantees. But feel free to enjoy as you please.

License

pynapl is registered under the MIT license - That means if you use it, mention me and we're cool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynapl-0.0.7.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pynapl-0.0.7-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page