I aint recieving any email when im trying it out. This is my first time trying to make a functional contactform, but nothing seems to be working, nor the jquery validation or the php. The php outputs “your message has been sent” but there are no emails in my inbox.
$message = "$message";
// Mail of sender
$mail_from = "$email";
$header = "from: $name <$mail_from>";
// Enter your email address
// Check, if message sent to your email
// display message "We've recived your information"
echo "Your message has been sent";
There are several reasons why you might not be getting the email. Are you having this problem when running the code on a web server, or on your local machine?
If you’re running on your local machine then it’s possible that PHP isn’t configured correctly to send mail. If you’re running on hosted web space, it could be that the email is getting sent but is being flagged as spam by the receiving email service.
First off, I notice you’re getting a couple of JS errors on the page… jquery-ui is complaining because you’re trying to load it before you’ve loaded jquery (just reverse the order of the <script> tags on the page). Also, you’re not loading a validation plugin anywhere on the page, which is why the form validation is not working.
do you tried a different email adderess
use sender’s email id to be same as from your server eg:firstname.lastname@example.org
and just post the email of sender in message
try it for justhost i had similar problem
You can try adding the actual email address that your webserver sends the email from (not the one you set in your PHP script) to your contacts in Outlook.com
You can find the real From address by highlighting the received email and going to the Actions menu, and selecting View Message Source. You’ll see all the email headers, and somewhere among them will be the address that the email actually came from… it may be from the same domain as your website.