summaryrefslogtreecommitdiff
path: root/inc/mail.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-04-09 14:54:51 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-04-09 14:54:51 +0200
commit875e14f91aedf85d5ac69159da2e09ce5ad69951 (patch)
treebc4a5caca6b3cb6b4c48b782c2b031984b218d34 /inc/mail.php
parent630054600c932cd474f3d599e20f8aa952d863c8 (diff)
parent0a71e551221e2019670f92b416f0b42cd111618b (diff)
downloadrpg-875e14f91aedf85d5ac69159da2e09ce5ad69951.tar.gz
rpg-875e14f91aedf85d5ac69159da2e09ce5ad69951.tar.bz2
Merge pull request #1109 from micgro42/deprecateMailSend
Add deprecated tag to mail_send, _mail_send_action, mail_encode_address
Diffstat (limited to 'inc/mail.php')
-rw-r--r--inc/mail.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/inc/mail.php b/inc/mail.php
index 9f1b1f3d6..e4d06fd86 100644
--- a/inc/mail.php
+++ b/inc/mail.php
@@ -96,15 +96,23 @@ function mail_setup(){
*
* @author Andreas Gohr <andi@splitbrain.org>
* @see mail()
+ *
+ * @deprecated User the Mailer:: class instead
*/
function mail_send($to, $subject, $body, $from='', $cc='', $bcc='', $headers=null, $params=null){
-
+ dbg_deprecated('class Mailer::');
$message = compact('to','subject','body','from','cc','bcc','headers','params');
return trigger_event('MAIL_MESSAGE_SEND',$message,'_mail_send_action');
}
+/**
+ * @param $data
+ * @return bool
+ *
+ * @deprecated User the Mailer:: class instead
+ */
function _mail_send_action($data) {
-
+ dbg_deprecated('class Mailer::');
// retrieve parameters from event data, $to, $subject, $body, $from, $cc, $bcc, $headers, $params
$to = $data['to'];
$subject = $data['subject'];
@@ -177,8 +185,11 @@ function _mail_send_action($data) {
* @param string $string Multiple adresses separated by commas
* @param string $header Name of the header (To,Bcc,Cc,...)
* @param boolean $names Allow named Recipients?
+ *
+ * @deprecated User the Mailer:: class instead
*/
function mail_encode_address($string,$header='',$names=true){
+ dbg_deprecated('class Mailer::');
$headers = '';
$parts = explode(',',$string);
foreach ($parts as $part){