Apparently the NotificationService and the AuthenticationController use the SendAsync overload that disables the notification handler from being fired. Could anyone explain me why this is? We're using Office365 as an SMTP server which requires OAuth which by default isn't possible within Umbraco. My idea was to create a NotificationHandler for the SendEmailNotification notification, so I do not have to create my own implementation of EmailSender. Would it be better to replace the default EmailSender instead of listening to the SendEmailNotification?
s
Sean Thorne
02/28/2024, 1:34 PM
I would say so, you have more control then 🙂
m
Maarten
02/28/2024, 2:08 PM
I do, but that would mean that i'd have to re-implement the things that are already there if I want to reuse them
Maarten
02/28/2024, 2:08 PM
Mostly wondering why those two SendEmail events should not trigger notifications
Maarten
02/28/2024, 2:09 PM
For the two factor notification you might say that it's due to more security as the message cannot be intercepted, but for the NotificationService I don't have a clue
Maarten
02/28/2024, 2:10 PM
But you're right, I'll go implement my own MailSender 😉