-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add reply to list support #1096
Conversation
I have a project requiring multiple reply-to addresses. Is there any update on this PR? |
foreach ($list as $l) { | ||
if ($l instanceof ReplyTo ) { | ||
$this->reply_to_list[] = $l; | ||
} else { | ||
if (is_array($l)) { | ||
if (!empty($l) && $l['email'] !== '') { | ||
$this->reply_to_list[] = new ReplyTo($l['email'], $l['name']); | ||
} | ||
} else { | ||
if ($l !=='') { | ||
$this->reply_to_list[] = new ReplyTo($l); | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the addition! Could you add some unit tests to validate the logic here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added unit tests please check
Fixes
This PR add reply_to_list support to the library.
Checklist
If you have questions, please file a support ticket.