Skip to content

Commit

Permalink
added ability to specify multiple email
Browse files Browse the repository at this point in the history
  • Loading branch information
itchief committed Dec 24, 2018
1 parent 636436b commit f592354
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion feedback/process/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f592354

Please sign in to comment.