summaryrefslogtreecommitdiff
path: root/plugins/mail
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-05-26 11:27:42 -0400
committerjustauser <[email protected]>2013-05-26 11:27:42 -0400
commit6dd01fcea230dc96bd3955aa74cf16aa1c5c17ca (patch)
tree8c5084e9a7e0ba790d99803f8582546f3be24c2f /plugins/mail
parentdf2655e01566f3c59337a020b1d70054ff585d75 (diff)
Changes to support a new version of the phpmailer. Adds a new setting SMTP_SECURE,
which cna have a value of tls, ssl or be empty. This is used for secure SMTP servers. Also added the ability to have multiple email addresses in the to field. Addresses are separated by semicolons (;)
Diffstat (limited to 'plugins/mail')
-rw-r--r--plugins/mail/init.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 80bc7d417..626fe8717 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -136,7 +136,10 @@ class Mail extends Plugin {
$mail->From = strip_tags($_REQUEST['from_email']);
$mail->FromName = strip_tags($_REQUEST['from_name']);
- $mail->AddAddress($_REQUEST['destination']);
+ //$mail->AddAddress($_REQUEST['destination']);
+ $addresses = preg_split('/;/', $_REQUEST['destination'],-1,PREG_SPLIT_NO_EMPTY);
+ foreach($addresses as $nextaddr)
+ $mail->AddAddress($nextaddr);
$mail->IsHTML(false);
$mail->Subject = $_REQUEST['subject'];