Skip to content

Commit

Permalink
feat: Added Ability to Have More Than One Testing Address
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane authored Apr 5, 2024
1 parent f4978f2 commit 58eaa69
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webfiori/email/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,15 @@ public function send() {

if ($isSend) {
$this->removeAllRecipients();
$this->addTo(EMAIL_TESTING_ADDRESS);
$addresees = explode(';', EMAIL_TESTING_ADDRESS);

foreach ($addresees as $addr) {
$trimmed = trim($addr);

if (strlen($trimmed) != 0) {
$this->addTo($trimmed);
}
}
}

if ($isStore && File::isDirectory(EMAIL_TESTING_PATH, true)) {
Expand Down

0 comments on commit 58eaa69

Please sign in to comment.