Skip to main content

A Simple Email Dispatcher based on top of win32Api

Project description

Outlook Email Dispatcher

A Simple Email Dispatcher based on top of win32Api

Examples of Usage:

Send Email with Attachments

import os
from pyoutlookdispatcher import Outlook, Mail

FILES_TO_ATTACH_FOLDER = os.path.join(os.getcwd(), 'files_to_attach')
ATTACHMENTS = [os.path.join(FILES_TO_ATTACH_FOLDER, f) for f in os.listdir(FILES_TO_ATTACH_FOLDER)]

mail = Mail(
    Subject="Teste",
    To="example@example.com",
    HTMLBody="Teste",
    CC="example@example.com",
    Attachments=ATTACHMENTS
)

outlook = Outlook()
outlook.send(mail)

Initialize Outlook

Instanciate an Object from Outlook Class

outlook = Outlook()

Preview Mail:

outlook.preview(mail)

Send Mail:

outlook.send(mail)

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

PyOutlookDispatcher-0.1.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

PyOutlookDispatcher-0.1.5-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file PyOutlookDispatcher-0.1.5.tar.gz.

File metadata

  • Download URL: PyOutlookDispatcher-0.1.5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.0 Windows/10

File hashes

Hashes for PyOutlookDispatcher-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f32522a9a3a69138eb606ed6cb6f96a6c280a4925f33091b5d4f377ee9f0a1fd
MD5 cb8d6a7ab2a458a70a8cfcfa0d00935d
BLAKE2b-256 bc6019e27105a815ebc0d99d88767fe710fe674a1e36559a79d4e27be66c1de3

See more details on using hashes here.

File details

Details for the file PyOutlookDispatcher-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for PyOutlookDispatcher-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 859e65bf8482ab12ef703bf4f741b5465a8576bf36169969f64a03a511008f6f
MD5 d19f0b55a550bf478c054ef602b527d7
BLAKE2b-256 429283f86c204a1431c4b9a7c824157c9c8685f8e3a1e6c0267ae93d536abb14

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