12) Send Mail

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


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.