12) Send Mail

This is our final piece of code. It uses the built-in PHP mail function:

sendmail

The period is a concatenation operator. The .= is an append operator.

This demonstrates a very simple use of the mail command with three parameters. A fourth parameter could be added for the email header.

php.net/manual/en/function.mail.php

Advertisements