Skip to content

Commit 6114af5

Browse files
Merge pull request #384 from adityatandon007/aditya/docs
Adds how to set up domain whitelabel and how to view email statistics
2 parents 4302bff + b180613 commit 6114af5

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ venv/
1616
.tox/
1717
profile*
1818
README.txt
19-
temp*.py
2019
.coverage
2120
coverage.xml
2221
htmlcov
2322
temp*.py
24-
sendgrid.env
23+
sendgrid.env
24+

USE_CASES.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This documentation provides examples for specific use cases. Please [open an iss
44

55
* [Transactional Templates](#transactional-templates)
66
* [Attachment](#attachment)
7+
* [How to Setup a Domain Whitelabel](#domain_whitelabel)
8+
* [How to View Email Statistics](#email_stats)
79
* [Asynchronous Mail Send](#asynchronous-mail-send)
810

911
<a name="transactional-templates"></a>
@@ -171,6 +173,20 @@ print(response.body)
171173
print(response.headers)
172174
```
173175

176+
<a name="domain_whitelabel"></a>
177+
# How to Setup a Domain Whitelabel
178+
179+
You can find documentation for how to setup a domain whitelabel via the UI [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/setup_domain_whitelabel.html) and via API [here](https://github.com/sendgrid/sendgrid-python/blob/master/USAGE.md#whitelabel).
180+
181+
Find more information about all of SendGrid's whitelabeling related documentation [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/index.html).
182+
183+
<a name="email_stats"></a>
184+
# How to View Email Statistics
185+
186+
You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](https://github.com/sendgrid/sendgrid-python/blob/master/USAGE.md#stats).
187+
188+
Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as SendGrid processes your email.
189+
174190
<a name="asynchronous-mail-send"></a>
175191
# Asynchronous Mail Send
176192

@@ -254,4 +270,5 @@ if __name__ == "__main__":
254270
loop = asyncio.get_event_loop()
255271
task = asyncio.async(send_many(ems, sample_cb))
256272
loop.run_until_complete(task)
257-
```
273+
```
274+

0 commit comments

Comments
 (0)