Skip to main content

A package for sending emails using Outlook and SMTP

Project description

python-mailer

a8mailer is a package for sending emails using Outlook and SMTP.

Installation

To install a8mailer, run the following command:

pip install a8mailer

Usage

To use Mailer, import the a8mailer function and call it with the required arguments:

from a8mailer import a8mailer

# Send an email to one recipient
a8mailer('sender@email.com','password',['recipient@email.com'], 'Subject', 'Body')

# Send an email to multiple recipients
a8mailer('sender@email.com','password', ['recipient1@email.com', 'recipient2@email.com'], 'Subject', 'Body')

# Send an email with CC and BCC recipients
a8mailer('sender@email.com','password',['recipient1@email.com', 'recipient2@email.com'], 'Subject', 'Body',
           cc_list=['cc1@email.com', 'cc2@email.com'], bcc_list=['bcc1@email.com', 'bcc2@email.com'])

The a8mailer function has the following parameters:

  • luser (str): sender email
  • lpass (str): sender password
  • to_list (required): List of email addresses to send the email to.
  • subject (required): Subject of the email.
  • body (required): Body of the email.
  • cc_list (optional): List of email addresses to CC the email to.
  • bcc_list (optional): List of email addresses to BCC the email to.

License

Mailer is licensed under the MIT License. See the LICENSE file for more details.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

a8mailer-0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

a8mailer-0.1-py3-none-any.whl (3.1 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