Sending email from a controller

megabosx

Active member
I want to create an addon that sends an email message from a controller, which controller should i override?
 
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:
Top Bottom