// SendAccountRecovery sends an email regarding account recovery with
// the token, embedded into a full URL, to the specified email address.
SendAccountRecovery sends an email regarding account recovery with
the token, embedded into a full URL, to the specified email address.
// SendAccountRecovery sends an email regarding account recovery with // the token embedded into a full URL to the specified email address .
func (m *Manager) SendAccountRecovery(ctx context.Context, eml, tok string) {
	e := hermes.Email{
		Body: hermes.Body{
			Title: "Trying to recover access your account?",
			Actions: []hermes.Action{
				{
					Instructions: "To recover access to your account, please click here:",
					Button: hermes.Button{
						Text: "Recover",
						Link: m.links.Prep(
							httpflow.LinkRecovery, tok),
					},
				},
				{
					Instructions: "Wrong email address? Please click here:",
					Button: hermes.Button{
						Text: "Cancel",
						Link: m.links.Prep(
							httpflow.LinkRecoveryCancel, tok),
					},
				},
			},
		},
	}
	eBody, err := m.herm.GenerateHTML(e)
	if err != nil {
		logutil.Critical(m.log, err).Msg("cannot generate recovery email")
		return
	}
	m.send(ctx, eml, "Password reset", eBody)
}
func ( m * Manager ) SendAccountRecovery ( ctx context . Context , eml , tok string ) { e := hermes . Email { Body : hermes . Body { Title : " " , Actions : [ ] hermes . Action { { Instructions : " " , Button : hermes . Button { Text : " " , Link : m . links . Prep ( httpflow . LinkRecovery , tok ) , } , } , { Instructions : " " , Button : hermes . Button { Text : " " , Link : m . links . Prep ( httpflow . LinkRecoveryCancel , tok ) , } , } , } , } , } eBody , err := m . herm . GenerateHTML ( e ) if err != nil { logutil . Critical ( m . log , err ) . Msg ( " " ) return } m . send ( ctx , eml , " " , eBody ) }
SendAccountRecovery sends an email regarding account recovery with
the token, embedded into a full URL, to the specified email address.
SendAccountRecovery sends an email regarding account recovery with the token embedded into a full URL to the specified email address .