rano/mailer/message/welcome.go

24 lines
458 B
Go
Raw Permalink Normal View History

2024-11-18 15:23:13 +00:00
// Copyright 2024 Patial Tech. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
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)
}