In this article I’ll show you how to send email using PHP mail() function. This article will cover send email in both format plain text and HTML.
The PHP mail() Function
It is very easy to send email from a PHP script. You can even specify whether the PHP email script should use a local or remote SMTP server for sending messages.
You can use the PHP built-in mail() function for sending an email messages to one or more recipients dynamically from your PHP application either in a plain text form or in HTML format. The basic syntax of this function is: