PHPMailer::parseAddresses

Advertisement

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

$addrstr

(string) (Required) The address list string

$useimap

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

Default value: true

Return Return

(array)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.