This script will help you add a versatile and extensible PHP-based HTML email script for any project you may have. This email script has been setup and tested for use with UTF-8 characters.
- UTF-8 characters are not a problem
- Used on many of my own sites
- Easy to read & easy to expand upon
- The ability to send attachments is not setup
Unzip the contents of the zip file into a folder on your web server. Edit the
email_functions.php file to properly set the properties of your business (name, from email, etc.). Next, include that file in the script you are using and call it like so:
$status = sendmail($to, $subject, $message, $from);
$from is optional and it’s default value is set at the top of the
$status will be either true or false depending on if the email worked or not.
You can download this script here: html_email_starter.zip (2KB)rest_api_starter.zip (104 downloads)