From 391106f7eaa3884b7e500d0ce95350f291fec9bc Mon Sep 17 00:00:00 2001 From: maxogod Date: Thu, 26 Jun 2025 05:19:07 -0300 Subject: [PATCH] fix: swap \n for
in email --- internal/utils/send_email.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/utils/send_email.go b/internal/utils/send_email.go index 27854e1..c88e3ad 100644 --- a/internal/utils/send_email.go +++ b/internal/utils/send_email.go @@ -22,7 +22,7 @@ func SendActivationTokenToUser(url, email, token string) { req := EmailRequest{ Email: []string{email}, Subject: "Activate your account", - Body: fmt.Sprintf("Your activation code for the class-connect mobile app is: %s", token), + Body: fmt.Sprintf("Your activation code for the class-connect mobile app is: %s", token), } SendEmailRequest(url, req) @@ -32,7 +32,7 @@ func SendAccountSuccesfullyActivated(url, email, name string) { req := EmailRequest{ Email: []string{email}, Subject: "Welcome to Class Connect!", - Body: fmt.Sprintf("Hello %s!\nYour account has been succesfully activated.\nYou now can create and join any courses on the class-connect mobile app!", name), + Body: fmt.Sprintf("Hello %s! Your account has been succesfully activated.
You now can create and join any courses on the class-connect mobile app!", name), } SendEmailRequest(url, req) @@ -42,7 +42,7 @@ func SendPasswordResetTokenToUser(url, email, token string) { req := EmailRequest{ Email: []string{email}, Subject: "Change your password", - Body: fmt.Sprintf("Your password recovery code for the class-connect mobile app is: %s", token), + Body: fmt.Sprintf("Your password recovery code for the class-connect mobile app is: %s", token), } SendEmailRequest(url, req)