1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sending email from a controller

Discussion in 'XenForo Development Discussions' started by megabosx, Aug 16, 2016.

  1. megabosx

    megabosx Active Member

    I want to create an addon that sends an email message from a controller, which controller should i override?
  2. Snog

    Snog Well-Known Member

    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
    megabosx likes this.

Share This Page