Skip to main content

Emailer

  • Send Email easily with python.

Installation

  • Install Package Using pip
    python3 pip install Emailer
    

How to use:

  • How to send Email

    from Emailer.core import EmailSender
    
    # Configuring HOST
    HOST_USER = 'example@gmail.com'
    HOST_PASSWORD = 'secretpassword'
    sender = EmailSender(HOST_USER, HOST_PASSWORD)
    
    # Lets send the email
    
    # This is out email content (a html file) You can also refer
    # to variables like jinja template
    html_file_path = '/some/path/name.html' # <h1>Hey {{ name }}<h1>
    context = {'name': 'Anonymous'} # The value of variable in html {{ name }}
    receiver = 'someone@gmail.com'
    subject = 'Nothing Special'
    
    sender.send(
      receiver=receiver,
      subject=subject,
      template=html_file_path,
      context=context
    )
    
    # And done.Email sent 🎊🎉
    
  • You can also send text instead of html file Defaultly its set to TEMPLATE_TYPE_PATH to use html file path

    from Emailer import template_types
    
    sender.send(
      receiver=receiver,
      subject=subject,
      template='Just a text',
      template_type=template_types.TEMPLATE_TYPE_TEXT
    )
    
    # Just change the template type to text.
    
  • Changing Server, Port defaultly its set to Gmail server:'smtp.gmail.com', port:465

    sender.send(
      receiver=receiver,
      subject=subject,
      template='Just a text',
      template_type=template_types.TEMPLATE_TYPE_TEXT,
    
      SERVER='Email server',
      PORT='Email servers port'
    )
    

Metadata

Release files for Emailer 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Emailer 1.1
File Size Uploaded Provenance Actions
Emailer-1.1.tar.gz 3.7 kB Without provenance Details for Emailer-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Emailer 1.1
File Interpreter ABI Platform Actions
Emailer-1.1-py3-none-any.whl Python 3 none any Details for Emailer-1.1-py3-none-any.whl

Total release size: 7.8 kB

Release files / Emailer-1.1.tar.gz

Download URL Emailer-1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d192b57cb3c232c2b799d0ba02b3c8923d56af5ddf3ee32879dedd650ae0d066
BLAKE2b-256 checksum
How to use checksums
83bd26a4161bfa30796ca71142ca65a7383253a96cd20f9cdfbf67ff76f55ef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / Emailer-1.1-py3-none-any.whl

Download URL Emailer-1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c0bfe2b0b49a6745db917c251324a7546375e563d8fd96140b1870a4d02e0a1
BLAKE2b-256 checksum
How to use checksums
5edd90002dbafb1876e469b238cbf72d3babbac4746967bec51f27e5701fdb5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Security for Emailer 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page