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