diff options
author | justauser <[email protected]> | 2013-05-26 11:27:42 -0400 |
---|---|---|
committer | justauser <[email protected]> | 2013-05-26 11:27:42 -0400 |
commit | 6dd01fcea230dc96bd3955aa74cf16aa1c5c17ca (patch) | |
tree | 8c5084e9a7e0ba790d99803f8582546f3be24c2f /plugins/mail | |
parent | df2655e01566f3c59337a020b1d70054ff585d75 (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.php | 5 |
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']; |