-1
Guys, I need help. I have the following email sending controller, where I send an email for password retrieval. this email will be sent from a simple html I have in the templates folder. My doubt is the following how do I pass user data to that Login, so that at the time of sending arrive that data in the user box.
GmailEmailService gmail = new GmailEmailService();
EmailMessage msg = new EmailMessage();
//ler o caminho do arquivo html
StreamReader sr = new StreamReader("./Emails/templates/EsqueceuASenha.html");
msg.Body = sr.ReadToEnd();
msg.IsHtml = true;
msg.Subject = "Recuperação de Senha";
msg.ToEmail = emailPara.EmailRecuperacao;
gmail.SendEmailMessage(msg);
return RedirectToAction("Login");
Managed to solve?
– Leandro Angelo