September 2001
Intermediate to advanced
768 pages
32h 45m
English
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 ...
Read now
Unlock full access