rano/mailer/message/welcome.go

20 lines
301 B
Go
Raw Normal View History

package message
2024-11-17 16:58:29 +00:00
import _ "embed"
//go:embed welcome.html
var welcomeHtml string
type Welcome struct {
2024-11-17 16:58:29 +00:00
Name string
VerifyURL string
}
func (e *Welcome) Subject() string {
2024-11-17 16:58:29 +00:00
return "Welcome, " + e.Name
}
func (e *Welcome) HtmlBody() (string, error) {
2024-11-17 16:58:29 +00:00
return render(layout, welcomeHtml, e)
}