Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web form Hotmail issue

Featured Replies

My web form seems to work find when directing to my yahoo email, but when I direct to my Hotmail email it doesn't come through. Any ideas why?

<?php

$this_form_spam = filter_input(INPUT_POST, 'this_title');

$name = filter_input(INPUT_POST, 'name');
$email = filter_input(INPUT_POST, 'email');
$phone = filter_input(INPUT_POST, 'phone');
$gender = filter_input(INPUT_POST, 'gender');
$subject = filter_input(INPUT_POST, 'subject');
$message = filter_input(INPUT_POST, 'message');

$from = 'FROM: Website Contact Form';
$to = '******@live.com';
$body = "FROM: $name \nEMAIL: $email \nPHONE: $phone \nGENDER: $gender \n\nMESSAGE: $message";

$sent = mail($to, $subject, $body, $from);

if ($this_form_spam == "") {
	if($sent) {
		header ('Location: ../index.php');
	}
	else {
		echo '<p>Ah! Try again, please</p>';
	}
}
else {
	// mock and laugh in the face of spam
	echo 'POSSIBLE SPAM EMAIL';
}

?>

Shouldn't the line $from = 'FROM: Website Contact Form'; be an actual email address? That could be why its being rejected.

  • Author

I did what you said and it work, thank you.

 

Question! How do I change the ugly nameserver name coming in as the from in my inbox?

Are you using SMTP to authenticate it? I would, to stop it going to junk in the future potentially.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.