Skip to main content

A simple way to send email. for dsm

Project description

DSM Email

install

pip install dsmemail

how to use

import dsmemail

status = dsmemail.sendEmail(
    subject="test", 
    message="helloworld", 
    emails=["admin@admin.com"],
    attachments=["test.txt"],
    host="https://email-service.data.storemesh.com",
    api_key="<API_KEY>"
)
print(status)
variable dtype description
subject str subject of email
message str email body can contains html string
emails List[str] email to send message
attachments List[str] list of filepath(str) to attach files
host str email server uri
api_key str api_key for email services

output

[(True, 'email send to admin@admin.com 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.9.tar.gz (5.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.9.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for dsmemail-0.0.9.tar.gz
Algorithm Hash digest
SHA256 9125e886f6e99e2a76fc14a454ad25fee48f5b6bf05ea877b656f695a8899210
MD5 dd23e60c974ff15200d5c8cbd1c95eab
BLAKE2b-256 95b05a7bb977d55738799d2944f05ee45776f07db7171887dcbfc949e1135380

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