megabosx Active member Aug 16, 2016 #1 I want to create an addon that sends an email message from a controller, which controller should i override?
I want to create an addon that sends an email message from a controller, which controller should i override?
Snog Well-known member Aug 16, 2016 #2 You don't need to override any controller to send mail. Use XenForo_Mail::getDefaultTransport() and create a function in your add-on to send the mail using the transport. Or you may be able to use _sendEmail in XenForo_Deferred_UserEmail. Last edited: Aug 16, 2016
You don't need to override any controller to send mail. Use XenForo_Mail::getDefaultTransport() and create a function in your add-on to send the mail using the transport. Or you may be able to use _sendEmail in XenForo_Deferred_UserEmail.