A simple way to send email. for MPT
Project description
mpt-email-client
install
pip install mptemail
how to use
import mptemail
status = mptemail.sendEmail(
subject="test",
message="helloworld",
emails=["admin@admin.com"],
attachments=["test.txt"],
host="https://email-service.xxx.com",
api_key="<API_KEY>",
verify_ssl=False
)
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 |
| verify_ssl | bool | set ssl verify true or false |
output
[(True, 'email send to admin@admin.com sucess')]
status
True = send email sucess
False = send email fail
msg
string describe status
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mptemail-0.0.1.tar.gz
(6.0 kB
view details)
File details
Details for the file mptemail-0.0.1.tar.gz.
File metadata
- Download URL: mptemail-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9518502bdc2e137a41f55a280f6873a293b1f7359d1cbb65b76f3475e6cee1ed
|
|
| MD5 |
87eb0cbe4af34cc2dafecb3c8ebbb9fa
|
|
| BLAKE2b-256 |
930fb7768564aa868fab62f2437b8f41f0fb0ef243f11b08cea1c652c5afa31c
|