Name
Synopsis
bool mail(stringrecipient
, stringsubject
, stringmessage
[, stringheaders
[, stringparameters
]])
Sends message
to
recipient
via email with the subject
subject
and returns
true
if the message was successfully sent or
false
if it wasn’t. If given,
headers
is added to the end of the headers
generated for the message, allowing you to add cc:, bcc:, and other
headers. To add multiple headers, separate them with
\n
characters (or \r\n
characters on Windows servers). Finally, if specified,
parameters
is added to the parameters of
the call to the mailer program used to send the mail.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.