Jump to content


Photo

mail() problems with MSN/Hotmail


  • Please log in to reply
4 replies to this topic

#1 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 12 September 2006 - 04:24 PM

It works to gmail accounts but not to msn and hotmail :'(
<?php
if(isset($_POST['Submit'])){
$To = $_POST['from'];
$Subject = "Thank You For Subscribing";
$Message = "Thank you for Subscribing, ".$_POST['from'];
$Headers = "From: Frank Perez <2fr3sh@gmail.com>";
mail($To, $Subject, $Message, $Headers);

$Too = "2fr3sh@gmail.com";
$Subjecto = "New Subscription";
$Messageo = "This user has just subscribed, ".$_POST['from'];
$Headerso = "From: New Subscriber <$To>";
mail($Too, $Subjecto, $Messageo, $Headerso);
} else { ?>


<form name="form1" method="post" action="">
  <input name="from" type="text" id="from">
  <input type="submit" name="Submit" value="Submit">
</form>
<?php } ?>


#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 12 September 2006 - 04:29 PM

Check the spam boxes.

Info: PHP Manual


#3 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 12 September 2006 - 04:31 PM

i did it just doesnt send to hotmail or msn

#4 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 12 September 2006 - 04:58 PM

I don't know what else to say then.  Also keep in mind that hotmail and msn have delays.  You may not get mail right away with them.

Also, I've told you this before... please use more descriptive titles for your threads.  If you do it again I will suspend your account for a few days.

Info: PHP Manual


#5 mainewoods

mainewoods
  • Members
  • PipPipPip
  • Advanced Member
  • 685 posts
  • LocationMaine

Posted 12 September 2006 - 09:05 PM

there are many user comments on the bottom of this page that show workarounds to email problems including hotmail problems:
http://us2.php.net/m...en/ref.mail.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users