footerPara:="Didn't request this password reset? Your account is still safe, and you can safely ignore this email."
footerPara:="Didn't request this password reset? Your account is still safe, and you can safely ignore this email."
plainMsg:=fmt.Sprintf("We received a request to reset your password on %s. Please click the following link to continue (or copy and paste it into your browser): %s/reset?t=%s\n\n%s",app.cfg.App.SiteName,app.cfg.App.Host,token,footerPara)
plainMsg:=fmt.Sprintf("We received a request to reset your password on %s. Please click the following link to continue (or copy and paste it into your browser): %s/reset?t=%s\n\n%s",app.cfg.App.SiteName,app.cfg.App.Host,token,footerPara)
m:=mailgun.NewMessage(app.cfg.App.SiteName+" <noreply-password@"+app.cfg.Email.Domain+">","Reset Your "+app.cfg.App.SiteName+" Password",plainMsg,fmt.Sprintf("<%s>",toEmail))
m,err:=mlr.NewMessage(app.cfg.App.SiteName+" <noreply-password@"+app.cfg.Email.Domain+">","Reset Your "+app.cfg.App.SiteName+" Password",plainMsg,fmt.Sprintf("<%s>",toEmail))
footerPara:="This link will only work once and expires in 15 minutes. Didn't ask us to log in? You can safely ignore this email."
footerPara:="This link will only work once and expires in 15 minutes. Didn't ask us to log in? You can safely ignore this email."
plainMsg:=fmt.Sprintf("Log in to %s here: %s/login?to=%s&with=%s\n\n%s",app.cfg.App.SiteName,app.cfg.App.Host,redirectTo,t,footerPara)
plainMsg:=fmt.Sprintf("Log in to %s here: %s/login?to=%s&with=%s\n\n%s",app.cfg.App.SiteName,app.cfg.App.Host,redirectTo,t,footerPara)
m:=mailgun.NewMessage(app.cfg.App.SiteName+" <noreply-login@"+app.cfg.Email.Domain+">","Log in to "+app.cfg.App.SiteName,plainMsg,fmt.Sprintf("<%s>",toEmail))
m,err:=mlr.NewMessage(app.cfg.App.SiteName+" <noreply-login@"+app.cfg.Email.Domain+">","Log in to "+app.cfg.App.SiteName,plainMsg,fmt.Sprintf("<%s>",toEmail))