From b34b385be58435e7acaf9d042c6c5f443a41cd1e Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Mon, 4 Oct 2021 12:19:27 +0530 Subject: [PATCH] fix: email template --- server/utils/email.go | 340 ++++++++++++++++++++---------------------- 1 file changed, 164 insertions(+), 176 deletions(-) diff --git a/server/utils/email.go b/server/utils/email.go index bb781d0..a8f5b58 100644 --- a/server/utils/email.go +++ b/server/utils/email.go @@ -17,94 +17,89 @@ func SendVerificationMail(toEmail, token string) error { Subject := "Please verify your email" message := fmt.Sprintf(` - + - - - - - - - - - - - + + + + + + + + + + + - -
- - - - - - - -
- - - - - - - -
-
-
- - + +
+ + + + + + + +
+ + + + + + + +
+
+
+ + `, constants.ORGANIZATION_LOGO, constants.ORGANIZATION_NAME, constants.AUTHORIZER_URL+"/verify_email"+"?token="+token) bodyMessage := sender.WriteHTMLEmail(Receiver, Subject, message) @@ -126,98 +121,91 @@ func SendForgotPasswordMail(toEmail, token, host string) error { message := fmt.Sprintf(` - + - - - - - - - - - - - + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+
+
+ + + `, constants.ORGANIZATION_LOGO, toEmail, constants.RESET_PASSWORD_URL+"?token="+token) - -
- - - - - - - -
- - - - - - - -
-
-
- - - `, constants.ORGANIZATION_LOGO, toEmail, constants.AUTHORIZER_URL+"/verify_email"+"?token="+token) bodyMessage := sender.WriteHTMLEmail(Receiver, Subject, message) return sender.SendMail(Receiver, Subject, bodyMessage)