/
email-messages.go
24 lines (20 loc) · 956 Bytes
/
email-messages.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package email
import "fmt"
func GetEmailActivationMessage(locale string, url string) *Message {
return &Message{
Subject: "Confirm your registration",
Body: fmt.Sprintf("Thank you for creating an account!<br/>Please confirm your email address by clicking on the link below:<br/><br/><a href=\"%s\">Click here to confirm</a>", url),
}
}
func GetEmailChangeEmailAddressMessage(locale string, url string) *Message {
return &Message{
Subject: "Confirm your email address",
Body: fmt.Sprintf("You've requested an email change.<br/>Please confirm your email address by clicking on the link below:<br/><br/><a href=\"%s\">Click here to confirm</a>", url),
}
}
func GetEmailChangePasswordMessage(locale string, url string) *Message {
return &Message{
Subject: "Password Change",
Body: fmt.Sprintf("You've requested to change your password.<br/>Please use the link below:<br/><br/><a href=\"%s\">Click here to confirm</a>", url),
}
}