Why does EmailSender.SendAsync has an overload that disables the SendEmailNotification?
m
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
I would say so, you have more control then 🙂
m
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
Mostly wondering why those two SendEmail events should not trigger notifications
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
But you're right, I'll go implement my own MailSender 😉
2 Views