IMAP_RFC822_WRITE_ADDRESS(3) 1 IMAP_RFC822_WRITE_ADDRESS(3)
imap_rfc822_write_address - Returns a properly formatted email address given the mailbox, host, and personal info
SYNOPSIS
string imap_rfc822_write_address (string $mailbox, string $host, string $personal)
DESCRIPTION
Returns a properly formatted email address as defined in RFC2822 given the needed information.
PARAMETERS
o $mailbox
- The mailbox name, see imap_open(3) for more information
o $host
- The email host part
o $personal
- The name of the account owner
RETURN VALUES
Returns a string properly formatted email address as defined in RFC2822.
EXAMPLES
Example #1
imap_rfc822_write_address(3) example
<?php
echo imap_rfc822_write_address("hartmut", "example.com", "Hartmut Holzgraefe");
?>
The above example will output:
Hartmut Holzgraefe <hartmut@example.com>
PHP Documentation Group IMAP_RFC822_WRITE_ADDRESS(3)