summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-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);