Skip to content

Commit ad6ae68

Browse files
Update USE_CASES.md
1 parent 90c8239 commit ad6ae68

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

packages/mail/USE_CASES.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ This documentation provides examples for specific email use cases. Please [open
22

33
# Table of Contents
44

5-
* [Send a Single Email to a Single Recipient](#singleemailsinglerecipient)
6-
* [Send a Single Email to Multiple Recipients](#singleemailmultiplerecipients)
7-
* [Send Multiple Emails to Multiple Recipients](#multipleemailsmultiplerecipients)
8-
* [CC, BCC and Reply To](#ccbccreplyto)
9-
* [Handling Success/Failure/Errors](#successfailureerrors)
5+
* [Send a Single Email to a Single Recipient](#single-email-multiple-recipients)
6+
* [Send a Single Email to Multiple Recipients](#single-email-multiple-recipients)
7+
* [Send Multiple Emails to Multiple Recipients](#multiple-emails-multiple-recipients)
8+
* [CC, BCC and Reply To](#cc-bcc-reply-to)
9+
* [Handling Success/Failure/Errors](#success-failure-errors)
1010
* [Advanced Usage](#advanced)
1111
* [Transactional Templates](#transactional-templates)
1212
* [Attachments](#attachments)
@@ -17,7 +17,7 @@ This documentation provides examples for specific email use cases. Please [open
1717
* [Specifying Categories](#categories)
1818
* [Kitchen Sink - an example with all settings used](#kitchensink)
1919
* [Deploy a Simple App on Google App Engine with Node.js](#gae)
20-
* [Deploy a Simple App on Heroku with Node.js](#deploy_heroku)
20+
* [Deploy a Simple App on Heroku with Node.js](#heroku)
2121
* [How to Setup a Domain Whitelabel](#domain-white-label)
2222
* [How to View Email Statistics](#email-stats)
2323

@@ -182,21 +182,6 @@ sgMail
182182
}
183183
});
184184
```
185-
<a name="deploy"></a>
186-
# Deploy
187-
188-
<a name="deploy_heroku"></a>
189-
## Deploy SendGrid mail to Heroku
190-
191-
We are thrilled you are ready to deploy your SendGridified app! Here are step by step instructions (assuming you have a NodeJS app running on localhost tracked by git):
192-
193-
- `heroku create` (you may need to have your `heroku login` ready)
194-
- `git push heroku master`
195-
- `heroku ps:scale web=1`
196-
- `heroku config:set SENDGRID_API_KEY=SG.YOUR.OWN-API_KEY-HERE` (replace `SG.YOUR.OWN-API_KEY-HERE` with your own [api key from sendgrid](https://app.sendgrid.com/settings/api_keys)
197-
198-
If you run into any other non SendGrid related issues, don't forget to read through [Heroku's deployment documentation](https://devcenter.heroku.com/articles/getting-started-with-nodejs).
199-
200185

201186
<a name="advanced"></a>
202187
# Advanced Usage
@@ -561,6 +546,18 @@ app.listen(PORT, () => {
561546
'http://your_project_id.appspot.com/send?to=to%40example.com&from=from%40example.com' \
562547
-H 'cache-control: no-cache'
563548
```
549+
550+
<a name="deploy_heroku"></a>
551+
# Deploy a Simple App on Heroku with Node.js
552+
553+
Here are step by step instructions to deploy your Node.js app to Heroku (assuming you have a NodeJS app running on localhost tracked by git):
554+
555+
- `heroku create` (you may need to have your `heroku login` ready)
556+
- `git push heroku master`
557+
- `heroku ps:scale web=1`
558+
- `heroku config:set SENDGRID_API_KEY=SG.YOUR.OWN-API_KEY-HERE` (replace `SG.YOUR.OWN-API_KEY-HERE` with your own [api key from sendgrid](https://app.sendgrid.com/settings/api_keys)
559+
560+
If you run into any other non SendGrid related issues, don't forget to read through [Heroku's deployment documentation](https://devcenter.heroku.com/articles/getting-started-with-nodejs).
564561

565562
<a name="domain-white-label"></a>
566563
# How to Setup a Domain Whitelabel

0 commit comments

Comments
 (0)