0
csona created
Hello,
I have configured SendGrid with ASP.Net zero in the following way
- Commented this section in {MyProject}CoreModule.cs
if (DebugHelper.IsDebug)
{
//Disabling email sending in debug mode
//Configuration.ReplaceService<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);
}
- Implemented my own class derived from IEmailSender and configured in the following way
Configuration.ReplaceService<IEmailSender, SendGridEmailSender>(DependencyLifeStyle.Transient);
The code gets executed without any errors but emails are not getting sent as exptected. If I execute the same code outside in another test project then the eamils are sent.
Is there any step that I need to do? I could not find any specific documentation for this.
Thanks in advance.