Closed Iamkemical closed 3 years ago
How did you manage to solve this? @Iamkemical
I discovered that the html email templates were not copied to the output directory. This I did by right clicking on the HTML file then selecting the property and setting it as copy if newer. This resolved the issue I was having. @Thijmen
I'm sending emails using FluentEmail and Hangfire for background jobs. I get this error when i try sending emails.
Could not find a part of the path 'C:\inetpub\AspNetCoreWebApps\app\EmailTemplates\example.cshtml'
From Hangfire I'm able to see that the job fails but after some retries the mails go through, this can take from 3 to 25 minutes sometimes. There are also times when the mails goes almost immediately. Here is my code
Here's how I'm calling the the email service and enqueuing it using Hangfire
What could be the problem? Why does the method sometimes fail and goes through after 2 or more retries? @0xced @SimonCropp @mickeyr