SYNOPSISvarchar headerMailboxGetAddress(varchar mailbox)
Parameters:
mailbox
- A varchar
mailbox (with address and/or
display name)
Returns:
varchar
email address
DESCRIPTION
The headerMailboxGetAddress
function returns the email address
from a mailbox, with RFC 2047 encoded words decoded.
EXAMPLE<$mailbox = '"=?ISO-8859-1?Q?Troms=F8,?= Norway" <city@norway.org>'>
<$ret = (headerMailboxGetAddress($mailbox))>
Address: $ret
The output would be:
Address: city@norway.org
CAVEATS
When parsing a potentially multiple-mailbox header such as To
,
the value should be split into items first with headerGetItems
(here).
SEE ALSOheaderMailboxGetDisplayName