PHPMailer\PHPMailer\PHPMailer::parseAddresses
Parse and validate a string containing one or more RFC822-style comma-separated email addresses of the form "display name <address>" into an array of name/address pairs.
Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. Note that quotes in the name part are removed.
Signature
public function parseAddresses(string
$addrstr,
[boolean
$useimap = true] )
Parameters
$addrstr
— string- The address list string
$useimap
— boolean- Whether to use the IMAP extension to parse the list
Returns
- array