This hook can be used for implementing an alternative mail sending
system. The hook should return true if Phorum should still send the
mails. If you do not want to have Phorum send the mails also, return
false.
The SMTP module is a good example of using this hook to replace
Phorum's default mail sending system.
Call time:
In the file email_functions.php
in
phorum_email_user()
, right before email is sent
using mail().
Hook input:
Array with mail data (read-only) containing:
addresses
, an array of e-mail addressesfrom
, the sender addresssubject
, the mail subjectbody
, the mail bodybcc
, whether to use Bcc for mailing multiple
recipients
Hook output:
true or false - see description.