Dhesend Official Python SDK.
Project description
Dhesend Python SDK
A Python library for interacting with the Dhesend API, designed to make email sending simple and efficient. For full documentation, visit the official website.
Installation
Install the SDK using your preferred package manager:
pip install dhesend
Examples
Discover example integrations with various frameworks:
Setup
-
Obtain an API Key:
Get your API key from the Dhesend Dashboard. -
Initialize the SDK:
Use your API key to create an instance of the Dhesend client.
from dhesend import Dhesend
dhesend = Dhesend('your_api_key_here'); # Replace with your actual API key
Usage
Sending Your First Email
from dhesend import Dhesend, SendEmailPayload
dhesend = Dhesend("your-apikey")
params: SendEmailPayload = {
"from": "Dhesend <example@domain.com>",
"to": ['example@dhesend.com'],
"subject": 'Welcome to Dhesend',
"textBody": 'Have a nice day!',
}
response = dhesend.Email.send(params)
print(response)
Sending Emails with Custom HTML
from dhesend import Dhesend, SendEmailPayload
dhesend = Dhesend("your-apikey")
params: SendEmailPayload = {
"from": "Dhesend <example@domain.com>",
"to": ['example@dhesend.com'],
"subject": 'Welcome to Dhesend',
"htmlBody": '<strong>Have a nice day!</strong>',
}
response = dhesend.Email.send(params)
print(response)
License
MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dhesend-1.0.3.tar.gz.
File metadata
- Download URL: dhesend-1.0.3.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95ca80195e0279ea76e214bcbd41527609124c19c79d73c772b7508d44c43b7
|
|
| MD5 |
e0367528f06895ef90de2d449dc22a4e
|
|
| BLAKE2b-256 |
b561803d76e3551e8073519d0624f5fa20403b5872cb7e1e09abb174697ecf38
|
File details
Details for the file dhesend-1.0.3-py3-none-any.whl.
File metadata
- Download URL: dhesend-1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880183ea3b4dc6533955655c5154621512d9f68a838797bc1e39862e9b22f430
|
|
| MD5 |
844340b7fe0788099871e233cc2bda0c
|
|
| BLAKE2b-256 |
5508fa79488631b33ba8b015ec6363594be42d734b0dae5865ddcff5c4dae468
|