mail

bool mail(string recipient, string subject, string message, 
 [string extra_headers], [string extra_arguments]) 
recipient Address of the recipient
subject Message subject
message Body of the message
extra Extra headers for the message
extra_arguments Extra arguments for the underlying mail program (PHP 4.0.5 and later)

Sends a message via email.

Returns:

TRUE on success; FALSE on failure

Description:

mail() allows you to send email directly from a PHP script. recipient can be either a single email address or a comma-delimited list of addresses. If you want to set extra headers—for instance, in order to use Cc: or Bcc:—these may be placed in a newline-delimited string in the extra_headers parameter. As of PHP 4.0.5, you can also specify ...

Get PHP Functions Essential Reference 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.