Warning: file_put_contents(): Only -1 of 66 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
imap_rfc822_parse_headers imap_savebody IMAP PHP Manual imap_rfc822_write_address (PHP 4, 5) — Returns a properly formatted email address given the mailbox, host, and personal info Description st...
Forum und email

imap_rfc822_write_address

(PHP 4, PHP 5)

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

Description

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

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

Parameters

mailbox

The mailbox name, see imap_open() for more information

host

The email host part

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() example

<?php
echo imap_rfc822_write_address("hartmut""example.com""Hartmut Holzgraefe");
?>

The above example will output:

Hartmut Holzgraefe <hartmut@example.com>