Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorials/send-emails-tem-serverless-framework/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In this tutorial, you will learn how to send emails with [Transactional Email](/
1. Open a terminal and paste the following command to install the Serverless Framework CLI on your local machine:

```
npm install serverless -g
npm install serverless@3.41 -g
```
2. Clone the GitHub repository containing the configuration files needed to deploy your function:
```
Expand Down Expand Up @@ -91,4 +91,4 @@ The `go-mail` directory you have cloned contains a `.env` file in which you will
8. Open your terminal and paste the following command to trigger your function. Make sure that you replace `$FUNCTION_DOMAIN` with your function's domain, `$FUNCTION_TOKEN` with the token you have generated, and `$MAIL_TO` with your recipient's email address. Optionally, you can also edit the `"subject"` and `"message"` fields.
```
curl -v -X POST https://$FUNCTION_DOMAIN -H "X-Auth-Token: $FUNCTION_TOKEN" --data '{"to": "$MAILTO", "subject": "this is a test following the tem and serverless tuto", "message": "very very long message using the api"}'
```
```