Base solution for your next web application
Open Closed

Email (SMTP) doesn't work #3134


User avatar
0
yais1021 created

I set up the email smtp in ASP.NET Zero Administration > Settings > Email (SMTP) tab . When I send a test email, it says the email is sent successfully but I am not getting anything. Please help!!!


1 Answer(s)
  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi,

    In debug mode, email messages are logged to Logs.txt file. If you want to send emails, you can either run your app in release mode or you can search for "NullEmailSender" in your project and you will find a similar code to this:

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

    You can disabled it.