Base solution for your next web application
Open Closed

EmailSender providing Null for email sent #826


User avatar
0
jsingh created

Hi, I'm using the ASP.NET Boilerplate framework, to provide an email system that will distribute when requested. I got the email system working within the UserEmailer. However now the email sender is currently providing no email at this moment of time. It was working perviously but instead of going through EmailSenderBase its now going through NullEmailSender. Is there possible reasons why this could happen and where the issue could be stemming from.

Even from the initial injection the emailSender will be equal to NullEmailSender.

It seems like dependency injection isn't working however I can manually code it using an constructor:

_emailSender = new SmtpEmailSender(new SmtpEmailSenderConfiguration(SettingManager));

rather than using

_emailSender =  emailSender

1 Answer(s)
  • User Avatar
    0
    jsingh created

    I've figured it out, within the core project it seemed to have been disabled within debug mode.