A Python library for interacting with the Dhesend API, designed to make email sending simple and efficient. For full documentation, visit the official website.
Install the SDK using your preferred package manager:
pip install dhesendDiscover example integrations with various frameworks:
-
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 keyfrom 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)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)MIT License.