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

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 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.8.tar.gz
Algorithm Hash digest
SHA256 93fa02904969f5053612445b25ec71a7730ded2278e1bc852e67c80c04c93479
MD5 1fd4fded8e9e3725860c2bf27a2f1524
BLAKE2b-256 14ead9604810dd1c33961add2e308389e26ce6ca96c87d21ac71ea66abea6ffa

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