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

Uploaded Source

File details

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

File metadata

  • Download URL: dsmemail-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cab11745d7af452f3f5a00f226adfe5eeeb92817281ebfd86c93f01fc678a9d0
MD5 6f1833f4507d44dc44d3e8c322edcf2c
BLAKE2b-256 e3771270da7ab29075670ddf72ce6bc6017fad5e7008c42bf47bcf82643cdc39

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