Sending Email in PHP (Example)

If you configured the SMTP hosts in php.ini, you can easily send email via PHP. Simply use the mail() function in PHP and put in the parameters for email to, subject, email, and header information. //send email to $email_to = "somebody@somewhere.com"; //subject of email $email_subject = "Test Subject of the email"; //Email is from $header="from: […]