From f592354584dc1fe5b153192c058df352394b310d Mon Sep 17 00:00:00 2001 From: itchief Date: Mon, 24 Dec 2018 21:12:31 +1000 Subject: [PATCH] added ability to specify multiple email --- feedback/process/process.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/feedback/process/process.php b/feedback/process/process.php index ceab604..3d140f3 100644 --- a/feedback/process/process.php +++ b/feedback/process/process.php @@ -187,7 +187,12 @@ $mail->setFrom(MAIL_FROM, $fromName); $mail->Subject = '=?UTF-8?B?'.base64_encode(MAIL_SUBJECT).'?='; $mail->Body = $bodyMail; - $mail->addAddress(MAIL_ADDRESS); + + $emails = explode(',', MAIL_ADDRESS); + foreach($emails as $address) { + $mail->addAddress(trim($address)); + } + // прикрепление файлов к письму if (IS_SENS_FILES_AS_ATTACHMENTS) { if (isset($attachments)) {