Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Emails stopped sending from contact form?
#1
If you have a contact form on a website that has stopped sending emails, check that you're not sending the email from the person completing the form using the dynamic binding, for example

PHP Code:
<<?php echo((isset($_POST["Email"]))?$_POST["Email"]:""?>

Most servers nowadays will not deliver mail if it comes from a domain not hosted on the website's server to prevent spoofing. 

I generally set the "From" field to, for example, noreply@mydomain.com and then bind the email address of the actual sender within the body of the email. It just means that when the email arrives you can't hit Reply, you need to copy & paste the sender's email address into the To field manually. As long as the email comes from an address that uses the domain of the hosted website (it doesn't even have to be a functioning email address), there shouldn't be any issues.
Reply


Messages In This Thread
Emails stopped sending from contact form? - by Mags - 08-29-2024, 03:44 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)