- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
I would definitely check the Apache error_log for messages and take it from there.
can we see contactengine.php?
Where’s the Apache error_log?
Yeah this is the contactenging.php with the email addresses changed
// 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 ““;
}
?>
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:
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.