I’m using this tutorial to create a simple PHP/jQuery contact form to grab user information and send to a specified email address. It works flawlessly, the only change I’d like to make is to specify a subject in the messages that go out (not on the part of the user– I’m actually only going to have one field for the email address– just what PHP sets as a default subject line)
The config.php is as follows:
<?php
// To
define("WEBMASTER_EMAIL", 'address@test.com');
?>
I’m wondering if I can simply add a line specifying a default subject for the emails as “Contact Form Data” or is this more involved?
Thanks for any guidance here.
i think you could define a subject the same way like:
and then simply change
to
to use it in the mail.