Skip to content
Snippets Groups Projects
Commit 1986aa9e authored by Chris Smith's avatar Chris Smith
Browse files

Add MAIL_MESSAGE_SEND event (resolution of FS#1007)

Wrapper around DokuWiki's mail_send() function.
For full details refer http://wiki.splitbrain.org/wiki:events_list#mail_message_send

Also see discussion at http://www.freelists.org/archives/dokuwiki/09-2007/msg00077.html

darcs-hash:20070930014728-d26fc-ecdc7df22f35d1c04e8d22da332426df8a85da5b.gz
parent b2bc77d5
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,11 @@
* @see mail()
*/
function mail_send($to, $subject, $body, $from='', $cc='', $bcc='', $headers=null, $params=null){
$message = compact('to','subject','body','from','cc','bcc','headers','params');
trigger_event('MAIL_MESSAGE_SEND',$message,'_mail_send');
}
function _mail_send($to, $subject, $body, $from='', $cc='', $bcc='', $headers=null, $params=null){
if(defined('MAILHEADER_ASCIIONLY')){
$subject = utf8_deaccent($subject);
$subject = utf8_strip($subject);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment