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

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 fc9309fb518be75680777c8cb99d8d719299dc4dc366f23c12299a2d7f1f9511
MD5 f13a8b535a034118cd7025b9018ddd25
BLAKE2b-256 3172b7846c840385d36c5705fb03dd73818f0aae0fb09d2daffb671cc9b72537

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