Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End contact form

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24948
    matt25
    Participant

    I have created a website with a contact form, but the email does’t seem to be getting to certain email addresses, It gets through to mine and to the clients personal email but not the clients work email which is [email protected] and I can’t work out why it doesn’t go to that email address when normal emails go through fine

    the site is http://www.sullyco.co.uk if that helps

    Thanks
    Matt

    #58141

    I would definitely check the Apache error_log for messages and take it from there.

    #58148
    mattvot
    Member

    can we see contactengine.php?

    #58181
    matt25
    Participant

    Where’s the Apache error_log?

    Yeah this is the contactenging.php with the email addresses changed

    Code:
    “;
    exit;
    }

    // prepare email body text
    $Body = “”;
    $Body .= “Name: “;
    $Body .= $Name;
    $Body .= “n”;
    $Body .= “Tel: “;
    $Body .= $Tel;
    $Body .= “n”;
    $Body .= “Email: “;
    $Body .= $Email;
    $Body .= “n”;
    $Body .= “Message: “;
    $Body .= $Message;
    $Body .= “n”;

    // send email
    $success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>“);

    // redirect to success page
    if ($success){
    print ““;
    }
    else{
    print ““;
    }
    ?>

    #58186

    Apache’s error log depends on the host you are using. Either check via ftp for a logs directory, or in the directory your script is located, or if your host provides you with a control panel that might have a logs section.

    :mrgreen:

    #58204
    mattvot
    Member

    Hi,

    If it is not absolutely necessary I wouldn’t define a From Email address. This causes some spam filters to go wild if the server is not set up correctly. For example, you could state the email came from whitehouse.gov and the mismatch between where you say it came from and where it actually does is a major warning sign for spam and phishing emails, which are treated as they should be by security software.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Back End’ is closed to new topics and replies.