mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
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 (;)
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user