Add hook that could be the solution for Bug #28026 (“Enable e-mail
[lhc/web/wiklou.git] / docs / hooks.txt
index bf4a46e..abe40a7 100644 (file)
@@ -295,6 +295,15 @@ before showing the edit form ( EditPage::edit() ). This is triggered
 on &action=edit.
 $EditPage: the EditPage object
 
+'AlternateUserMailer': Called before mail is sent so that mail could
+be logged (or something else) instead of using PEAR or SMTP
+$UserMailer: the EditPage object
+$headers: Associative array of headers for the email
+$to: MailAddress object or array
+$from: From address
+$subject: Subject of the email
+$body: Body of the message
+
 'APIAfterExecute': after calling the execute() method of an API module.
 Use this to extend core API modules.
 &$module: Module object