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

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.7.tar.gz
  • Upload date:
  • Size: 3.2 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.7.tar.gz
Algorithm Hash digest
SHA256 a1a5834f766b981f16966a71a2b0287e386dbe6fc2b44d1b6422939e79bd9ce2
MD5 c19f3ef620745418c0ebb6f214f861bd
BLAKE2b-256 a26f0e3de5c7ae7cf4eee7e745965ea9e5777b803c6873fcc5f461efef55efda

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