Python
Introduction
Learn how to send your first email using Dhesend Python SDK.
Prerequisites
To get the most out of this guide, you’ll need to:
2. Send email using html
Quickly send an email by using the html parameter.
1from dhesend import Dhesend, SendEmailPayload
2
3dhesend = Dhesend("your-apikey")
4
5params: SendEmailPayload = {
6 "from": "Dhesend <example@domain.com>",
7 "to": ['example@dhesend.com'],
8 "subject": 'Welcome to Dhesend',
9 "htmlBody": '<strong>Have a nice day!</strong>',
10}
11
12response = dhesend.Email.send(params)
13print(response)On this page