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)
-
0
Hi,
All emails not received or some emails not received?
-
0
Some, but there is no pattern to which ones are and aren't
-
0
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") }