Summery Summery

Parse and validate a string containing one or more RFC822-style comma-separated email addresses of the form “display name

” into an array of name/address pairs.

Syntax Syntax

PHPMailer::parseAddresses( string $addrstr, bool $useimap = true )

Description Description

Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. Note that quotes in the name part are removed.

Parameters Parameters


(Required) The address list string


(Optional) Whether to use the IMAP extension to parse the list

Default value: true

Return Return


Source Source

File: wp-includes/class-phpmailer.php




Leave a Reply