Skip to content

Commit

Permalink
Merge pull request #20 from WebFiori/usernane-patch-1
Browse files Browse the repository at this point in the history
feat: Added Ability to Have More Than One Testing Address
  • Loading branch information
usernane authored Apr 5, 2024
2 parents f4978f2 + 58eaa69 commit b3dc487
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 b3dc487

Please sign in to comment.