imap_mail
imap_mail
Send an email message
bool **imap_mail** string $to string $subject string $message $additional_headers $cc $bcc $return_path
This function allows sending of emails with correct handling of Cc and Bcc receivers.
The parameters ,
and are all strings and are all parsed
as address lists.
to``cc``bccRFC822
toThe receiver
subjectThe mail subject
message
The mail body, see
imap_mail_compose
additional_headersAs string with additional headers to be set on the mail
cc
bcc
The receivers specified in will get the
mail, but are excluded from the headers.
bcc
return_pathUse this parameter to specify return path upon mail delivery failure.
This is useful when using PHP as a mail client for multiple users.
return.success
mail``imap_mail_compose