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.3.tar.gz (2.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 157e8b49723984360ff3396f49cfce4fd27fc409d3f9129043e0312ff81969aa
MD5 364c392f59b15140868662c04a19e9eb
BLAKE2b-256 4427b3a6f014889fb30b1fd204e37278c6367e75c937448b0736dd445eab69a2

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