Skip to main content

Cabysis email sender service

Project description

Email Sender Package

MailManSender package is a Python library for sending emails easily using SMTP created by CabySis.

Installation

You can install the lastest version as:

    pip install cabysis-mail-man

Usage

You can use this library after installation as this example:

from cabysis_mail_man.file_meta import FileMeta
from cabysis_mail_man import sender
from cabysis_mail_man.providers import Providers # Enum class with all available providers

    files_meta = [
        FileMeta(file_path="path/file.txt"),    # Create file meta by file stored on path
        FileMeta(                               # Create file meta by buffer and file name
            buffer=b"file buffer example",
            file_name="file.txt",
        ),
    ]

    subject = "This is a subject"               # Define email subject
    message = "This is email body message."     # Define email body
    to_emails = [                               # Define the email receivers list
        "your_email@exmple.com"
    ]
    provider = Providers.MYPROVIDER            # Specify the provider
    api_key = "your_api_key"                    # Specify the api key 
    sender.send_mail(subject, message, to_emails, provider, api_key, files_meta)  # Send email with the provided data

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

cabysis_mail_man-1.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cabysis_mail_man-1.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file cabysis_mail_man-1.0.3.tar.gz.

File metadata

  • Download URL: cabysis_mail_man-1.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cabysis_mail_man-1.0.3.tar.gz
Algorithm Hash digest
SHA256 21b6f44f23e708b681a088adec7bc9c9bab1c7993a3af3ebdfda487f1634a345
MD5 17ad4834839291f8f69247f2b5b90b7e
BLAKE2b-256 ccda70b416961cce532f4262fd917f83f766f4573691a0810c0796c0abafaa00

See more details on using hashes here.

File details

Details for the file cabysis_mail_man-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cabysis_mail_man-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a447b29feb19aeef31686e3d0c75ea41694eaee75b3e6033d89fc088d7320d9
MD5 e1c1b376f717a5ffec847215214922cd
BLAKE2b-256 eef842051bcf82362661f19cc82f4abc59f31619f7ecb188076ee415da2eb86a

See more details on using hashes here.

Supported by

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