From c55f1902780f28d6de0845f73770a97acf62c163 Mon Sep 17 00:00:00 2001 From: Thomas Tacquet Date: Tue, 20 May 2025 15:13:02 +0200 Subject: [PATCH] fix(srvless): slsfw version --- tutorials/send-emails-tem-serverless-framework/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/send-emails-tem-serverless-framework/index.mdx b/tutorials/send-emails-tem-serverless-framework/index.mdx index c4f2b68418..901c73e3fa 100644 --- a/tutorials/send-emails-tem-serverless-framework/index.mdx +++ b/tutorials/send-emails-tem-serverless-framework/index.mdx @@ -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: ``` @@ -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"}' - ``` \ No newline at end of file + ```