Sending Emails in Asp.Net Identity using Dependency Injection, Sendgrid and debugging it with Mailtrap.io
Sending Emails in Asp.Net Identity using Dependency Injection, Sendgrid and debugging it with Mailtrap.io Posted on September 28, 2014 by trailmax Part 1: AspNet Identity and IoC Container Registration Sounds like I’m making a series of articles about ASP.Net Identity and how to use it with Depenency Injection. Part 1 have seen a lot of hits from Google in just a few days. I suppose it is worth extending the tutorial. Building up on Part 1 where I wired all Identity components to be injected by Unity container, now I’m going to add emailing service for email confirmation and password reset. My plan is to use SendGrid as a email service and email debugging service Mailtrap.IO as a hosted fake SMTP server. EmailService Class Standard VS template for ApplicationUserManager does not have an implementation for EmailService : public class EmailService : IIdentityMessageService { public Task SendAsync ( IdentityMessage me...