Skip to content

Commit

Permalink
Correct 'Send an email' example
Browse files Browse the repository at this point in the history
Rename $recipient to $toRecipient in variable declaration to avoid undefined variable error
  • Loading branch information
dbristow-otc authored May 31, 2024
1 parent e8aa247 commit 4e02b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ try {
$recipientEmail = new EmailAddress();
$recipientEmail->setAddress('jane.doe@outlook.com');
$recipientEmail->setName('Jane Doe');
$recipient = new Recipient();
$toRecipient = new Recipient();
$toRecipient->setEmailAddress($recipientEmail);
$recipients[] = $toRecipient;

Expand Down

0 comments on commit 4e02b6e

Please sign in to comment.