Skip to content

Commit

Permalink
Update basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
styxit committed May 27, 2024
1 parent 6469a4d commit a7667b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usage-guide-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ $firstToName = $to->getPersonName();
$firstToEmail = $to->getEmail();

foreach ($to->getAllAddresses() as $addr) {
$toName = $to->getPersonName();
$toEmail = $to->getEmail();
$toName = $addr->getName();
$toEmail = $addr->getEmail();
}

$attachment = $message->getAttachmentPart(0);
Expand Down

0 comments on commit a7667b5

Please sign in to comment.