mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-30 08:54:25 +08:00
27 lines
738 B
Go
27 lines
738 B
Go
package email
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// UserInvitedMail - mail for users that are invited to a tenant
|
|
type UserInvitedMail struct {
|
|
BodyBuilder EmailBodyBuilder
|
|
InviteURL string
|
|
}
|
|
|
|
// GetSubject - gets the subject of the email
|
|
func (UserInvitedMail) GetSubject(info Notification) string {
|
|
return "Netmaker: Pending Invitation"
|
|
}
|
|
|
|
// GetBody - gets the body of the email
|
|
func (invite UserInvitedMail) GetBody(info Notification) string {
|
|
|
|
return invite.BodyBuilder.
|
|
WithHeadline("Join Netmaker from this invite!").
|
|
WithParagraph("Hello from Netmaker,").
|
|
WithParagraph("You have been invited to join Netmaker.").
|
|
WithParagraph(fmt.Sprintf("Join Using This Invite Link <a href=\"%s\">Netmaker</a>", invite.InviteURL)).
|
|
Build()
|
|
}
|