From a7667b5a2c87287f700874a3008c984475086901 Mon Sep 17 00:00:00 2001 From: Floris Date: Mon, 27 May 2024 15:45:21 +0200 Subject: [PATCH] Update basic example --- usage-guide-2.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usage-guide-2.0.md b/usage-guide-2.0.md index a8f4e590..3177eff9 100644 --- a/usage-guide-2.0.md +++ b/usage-guide-2.0.md @@ -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);