Skip to content

Commit

Permalink
Merge pull request #215 from Stefaans/master
Browse files Browse the repository at this point in the history
Fix: README.md example to get person name from TO header
  • Loading branch information
zbateson authored Mar 7, 2023
2 parents 20b3e48 + 3683a2f commit 7ef9809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ echo $message->getHeaderValue(HeaderConsts::SUBJECT); // The email's subject
echo $message
->getHeader(HeaderConsts::TO) // also AddressHeader
->getAddresses()[0] // AddressPart
->getName(); // Person Name
->getPersonName(); // Person Name
echo $message
->getHeader(HeaderConsts::CC) // also AddressHeader
->getAddresses()[0] // AddressPart
Expand Down

0 comments on commit 7ef9809

Please sign in to comment.