imap_rfc822_write_address
imap_rfc822_write_address
Returns a properly formatted email address given the mailbox, host, and personal info
**imap_rfc822_write_address** string $mailbox string $hostname string $personal
Returns a properly formatted email address as defined in given the needed information. RFC2822
mailbox
The mailbox name, see for more
information
imap_open
hostnameThe email host part
personalThe name of the account owner
Returns a string properly formatted email address as defined in , return.falseforfailure. RFC2822
Voorbeeld: example
<?php
echo imap_rfc822_write_address("hartmut", "example.com", "Hartmut Holzgraefe");
?>
Hartmut Holzgraefe <hartmut@example.com>