A simple way to send email. for dsm
Project description
DSM Email
install
pip install dsmemail
how to use
- set env
DSM_EMAIL_URI=<DSM_EMAIL_URI>
DSM_EMAIL_APIKEY=<DSM_EMAIL_APIKEY>
- send email
import dsmemail
status, msg = dsmemail.sendEmail(
subject="test",
message="helloworld",
emails=["admin@admin.com"]
)
print(status, msg)
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.1.tar.gz
(2.3 kB
view details)
File details
Details for the file dsmemail-0.0.1.tar.gz
.
File metadata
- Download URL: dsmemail-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92bcf5b06bfa8e876ed24369ca4a6ef15cd6150deab6f3a3e680912fece9777f |
|
MD5 | 2b73d63c5493bc53c54acc6f2bd2699d |
|
BLAKE2b-256 | 3e7c2b3a5919994cb701fdfb82351f1e0f81a25d22be7633cb3ac74dd853a36e |