Hello,
This is Definitely Possible but you will need to Edit the include/sendemail.php File to Add the Custom Fields. There are 3 Steps to configure this in the include/sendemail.php File:
- Find the following code and duplicate it to add the New Field:
$name = isset( $_POST['template-contactform-name'] ) ? $_POST['template-contactform-name'] : '';
Example:
$newfield = isset( $_POST['template-contactform-newfield'] ) ? $_POST['template-contactform-newfield'] : '';
Make sure that the template-contactform-newfield is same as the Form Input’s name attribute in the HTML.
- Now, find the following code just a few lines below and duplicate it to add the New Field:
$name = isset($name) ? "Name: $name
" : '';
Example:
$newfield = isset($newfield) ? "New Field: $newfield
" : '';
- You now simply need to Add the New Field to the following code:
$body = "$name $email $phone $service $message $referrer";
Example:
$body = "$name $email $phone $newfield $service $message $referrer";
This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.