_emailSender.SendAsync stopped working. It is not ...
# help-with-umbraco
r
Umbraco 13. EmailMessage message = new EmailMessage("noreply@abc.com", mailTo, null, null, new[] { fromAddress }, subject, MailText, true, null); _emailSender.SendAsync(message, emailType: "Notification");
h
Is it throwing an error? How do you know it is not sending the email?
r
I added try catch, it is successful. I didnt receive the mail as mailTo address is on me. Even the invite user from the backoffice is not working. I recently upgraded to version 13 on July 4th and the email sending STOPPED working from july 20th. https://cdn.discordapp.com/attachments/1273562939366047807/1273574240435834983/Capture.PNG?ex=66bf1bf0&is=66bdca70&hm=516578ef40f3cbd6c6e287fc9c96951096cd2199927d7f13a60916895c2dad01&
There are no errors logged.
m
You added a try catch, but I don't see an await statement, so the statement isn't executed in the same context.
s
Are you sure your smtp server is working?
Seems like _emailSender delivers the mail correctly to the smtp server (since it's succesful), but from there it's up to the smtp server and the receiving mail server
r
ok. I shall check with the service provider. Thanks for your responses
h
if you have a local copy of the site you could use smtp4dev to show the emails are being sent
33 Views