Skip to main content

A simple way to send email. for dsm

Project description

DSM Email

install

pip install dsmemail

how to use

  1. set env
DSM_EMAIL_URI=<DSM_EMAIL_URI>
DSM_EMAIL_APIKEY=<DSM_EMAIL_APIKEY>
  1. send email
import dsmemail

status, msg = dsmemail.sendEmail(
    subject="test", 
    message="helloworld", 
    emails=["admin@admin.com"]
)

print(status, msg)

output

(True, 'email send sucess')

status

True = send email sucess
False = send email fail

msg

string describe status

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

dsmemail-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file dsmemail-0.0.2.tar.gz.

File metadata

  • Download URL: dsmemail-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.4

File hashes

Hashes for dsmemail-0.0.2.tar.gz
Algorithm Hash digest
SHA256 42e7cc4fee321263a2e6696eb5a9d904e79149d85e009d206ba8db35ad5ec235
MD5 02c09c2410f267335eee28924c7c44fe
BLAKE2b-256 2f5e8723e7240500eedb0d45bdb7d0c1831cb37128d253567244763e27a53b87

See more details on using hashes here.

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