summaryrefslogtreecommitdiff
path: root/inc/mail.php
diff options
context:
space:
mode:
authorChris Smith <chris@jalakai.co.uk>2007-09-30 03:47:28 +0200
committerChris Smith <chris@jalakai.co.uk>2007-09-30 03:47:28 +0200
commit1986aa9e32d0631a86ddb9a5d6883c628b0d3d3f (patch)
treeaa803fdb26edb3294834b4f2cc9638e4f2e3e253 /inc/mail.php
parentb2bc77d5608f1e3bd927125f963820091f864580 (diff)
downloadrpg-1986aa9e32d0631a86ddb9a5d6883c628b0d3d3f.tar.gz
rpg-1986aa9e32d0631a86ddb9a5d6883c628b0d3d3f.tar.bz2
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
Diffstat (limited to 'inc/mail.php')
-rw-r--r--inc/mail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/mail.php b/inc/mail.php
index 9a2ae96c7..b677c2b38 100644
--- a/inc/mail.php
+++ b/inc/mail.php
@@ -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);