Home > PHP > Function > IMAP > imap_rfc822_write_address()

imap_rfc822_write_address()

imap_rfc822_write_address - Returns a properly formatted email address given the mailbox, host, and personal info

Syntax

string imap_rfc822_write_address (string $mailbox, string $host, string $personal)

Arguments

  • mailbox - The mailbox name, see imap_open() for more information
  • host - The email host part
  • personal - The name of the account owner

Description

Returns a properly formatted email address as defined in » RFC2822given the needed information.

Version

PHP 4, 5

Return value

Returns a string properly formatted email address as defined in » RFC2822.