Base solution for your next web application
Open Closed

IEmailSender not working for Hostuser #7414


User avatar
0
razkhan78 created

Hello , I am working with boilerplate front-end is Jquery and backed is .Net core . In that for Host user there email setting option available. I have added my sendgrid SMTP credentials but for host user email is not sending.

I have no idea why it is behaving like this. all the host user confifuration is reading in __emailsender object but email is not going


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    possible reason:

    if (DebugHelper.IsDebug)
    {
    	//Disabling email sending in debug mode
    	Configuration.ReplaceService<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);
    }