Viewing 4 replies - 1 through 4 (of 4 total)
  • seanheather

    (@seanheather)

    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..

    Thread Starter colm.flanagan

    (@colmflanagan)

    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’]);

    seanheather

    (@seanheather)

    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?

    Thread Starter colm.flanagan

    (@colmflanagan)

    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 .= “

    • <h6>” . $emptyname . “</h6>
    • “;
      } elseif ( preg_match( $_REQUEST[‘contact-name’] ) ) {
      $iserror = 1;
      $alert .= ”

    • <h6>” . $alertname . “</h6>
    • “;
      }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Form Integration With My Email’ is closed to new replies.