Hello,
You should have some sort of PHP file that you have linked to the form that makes it function? In there is where you specify what e-mail address’ the emails go to when someone submits the form..
Thanks mate for helping..
I looked into he php file but can’t seem to update the correct bit. There is no $to line (which is what my research tells me) and changing the obvious bit (states “enter email here”) leaves me with an invalid email address when using a GMail..
Is it in this section?
// if everything went fine, send e-mail
$plsubject = “=?utf-8?B?”.base64_encode($subject).”?=”;
$msg = “Name: ” . clean_var($_REQUEST[‘contact-name’]) . “\n”;
$msg .= “E-mail: ” . clean_var($_REQUEST[‘contact-email’]) . “\n”;
$msg .= “Phone:” . clean_var($_REQUEST[‘contact-phone’]);
$header = “Content-type: text/plain; charset=utf-8\r\n”;
$header .= ‘From:’. clean_var($_REQUEST[‘contact-email’]);
No, it’s not in that little bit of code.
There should be a section in the file about which e-mail to sed it to, as well as mail server settings, unless of course it’s set up to work off the back of mail settings WordPress provides?
So I fount $sendto and put in my email, it now says it’s a success but the email doesn’t come through. In addition to success it states “warning: preg_match() expects at least 2 parameters, 1 given in /home/colmflan/public_html/wp-content/services/php/contactform.php on line 28. Line 28 is the elseif line below..
// validation of filled form
if ( empty($_REQUEST[‘contact-name’]) || $_REQUEST[‘contact-name’] == “”) {
$iserror = 1;
$alert .= “