Open Closed

Issue with emails sent through EmailSender #7405


User avatar
0
Voicebrook created

Hey

We're experiencing an issue with our emails, we have a service registered like this:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IWelcomeEmailService))]
public class WelcomeEmailService : IWelcomeEmailService, ITransientDependency

public interface IWelcomeEmailService
{
    Task SendWelcomeEmailAsync(string password, string userName, string email, string tenantName);
}

in which we have a method that uses the template renderer and email service. Debugging the service works just fine, but once we launch the app to our infrastructure there are some emails that we don't receive, we added the normal ILogger to find more about the root cause but we don't get logs from that specific service.


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    All emails not received or some emails not received?

  • User Avatar
    0
    Voicebrook created

    Some, but there is no pattern to which ones are and aren't

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can output the log to check And check the email provider logs

    Task SendWelcomeEmailAsync(string password, string userName, string email, string tenantName)
    {
        Logger.Info...("Email sending")
        send..
        Logger.Info...("Email sent")
    }
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11