PHP-Mailback This uses the php mail() function, taking the users input and storing it as a variable. After this, a reply email is sent with a subject header containing the users name. $subject = 'Thank you for doing business with us '.$name.'.';