IMAP_MAIL(3) 1 IMAP_MAIL(3)
imap_mail - Send an email message
SYNOPSIS
bool imap_mail NULL NULL NULL NULL (string $to, string $subject, string $message, [string $additional_headers], [string $cc], [string
$bcc], [string $rpath])
DESCRIPTION
This function allows sending of emails with correct handling of Cc and Bcc receivers.
The parameters $to, $cc and $bcc are all strings and are all parsed as RFC822 address lists.
PARAMETERS
o $to
- The receiver
o $subject
- The mail subject
o $message
- The mail body, see imap_mail_compose(3)
o $additional_headers
- As string with additional headers to be set on the mail
o $cc
-
o $bcc
- The receivers specified in $bcc will get the mail, but are excluded from the headers.
o $rpath
- Use this parameter to specify return path upon mail delivery failure. This is useful when using PHP as a mail client for multi-
ple users.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
mail(3), imap_mail_compose(3).
PHP Documentation Group IMAP_MAIL(3)