Skip to content

Commit 05d5c31

Browse files
author
childish-sambino
authored
Update USE_CASES.md
1 parent 8b78d3e commit 05d5c31

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/mail/USE_CASES.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ $ node index.js
698698
Before you begin, setup Google App Engine and install required packages by following [getting started](https://cloud.google.com/nodejs/getting-started/hello-world) guide.
699699

700700
#### Setup your environment variables
701-
Include your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys) in `app.yaml`, for example:
701+
Include your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys) in `app.yaml`, for example:
702702

703703
```yaml
704704
# Note: Don't commit the app.yaml file with API key, keep it changed locally - only used in deployment
@@ -736,15 +736,15 @@ const app = express();
736736
app.get('/send', (req, res) => {
737737
const {query: {to = '[email protected]', from = '[email protected]'}} = req;
738738
// other options could be customized further
739-
739+
740740
const msg = {
741741
to,
742742
from,
743743
subject: 'Sending with SendGrid is Fun',
744744
text: 'and easy to do anywhere, even with Node.js',
745745
html: '<strong>Hello Email app</strong>',
746746
};
747-
747+
748748
sgMail.send(msg).then(() => {
749749
res.status(200).send('Hello, world!').end();
750750
}).catch(e => {
@@ -767,11 +767,11 @@ app.listen(PORT, () => {
767767
```
768768
gcloud app deploy
769769
```
770-
771-
#### Send email
772-
770+
771+
#### Send email
772+
773773
Using the following snippet you should be able to send emails with the deployed app (replace `to` and `from` with your own)
774-
774+
775775
```curl
776776
curl -X GET \
777777
'http://your_project_id.appspot.com/send?to=to%40example.com&from=from%40example.com' \

0 commit comments

Comments
 (0)