Skip to content

Commit

Permalink
Update usage-guide-1.0.md #221
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Aug 28, 2023
1 parent 399a349 commit c3086ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usage-guide-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ $subject = $message->getHeaderValue('Subject');
$text = $message->getTextContent();
$html = $message->getHtmlContent();
$from = $message->getHeader('From');
$fromName = $from->getName();
$fromName = $from->getPersonName();
$fromEmail = $from->getEmail();

$to = $message->getHeader('To');
// first email address can be accessed directly
$firstToName = $to->getName();
$firstToName = $to->getPersonName();
$firstToEmail = $to->getEmail();

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

Expand Down

0 comments on commit c3086ac

Please sign in to comment.