bobinindia Posted April 12, 2008 Share Posted April 12, 2008 I am using mail(). It is sending the messages as far as I can see but hotmail and google don't receive them even in junk. What could it be? <?php mail($_POST['email'], 'Registration Confirmation', $body, 'From: [email protected]'); ?> Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/ Share on other sites More sharing options...
marklarah Posted April 12, 2008 Share Posted April 12, 2008 post the rest of your script Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-515432 Share on other sites More sharing options...
poleposters Posted April 12, 2008 Share Posted April 12, 2008 are you sending junk? I rarely get junk in my gmail junk folder even though people must be sending it. They filter it before it gets to me. Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-515706 Share on other sites More sharing options...
bobinindia Posted April 13, 2008 Author Share Posted April 13, 2008 No not junk User registration. <?php $body = "Thank you for registering at the site.\n To activate your account, please click on this link:\n\n"; $body .= "http://localhost:8888/activate.php?x=" . mysql_insert_id()."&y=$a"; mail($_POST['email'], 'Registration Confirmation', $body, 'From: $fromemail'); ?> What is also odd is that the '&y' goes missing from the link i am providing to the user. Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-515849 Share on other sites More sharing options...
poleposters Posted April 13, 2008 Share Posted April 13, 2008 Do you have your local server specified as the from email? Its possible its being filtered as junk. Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-515988 Share on other sites More sharing options...
bobinindia Posted April 13, 2008 Author Share Posted April 13, 2008 i have used various from addresses. Also left it blank so it goes from the default which ends up being my name as the owner of the computer Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-516017 Share on other sites More sharing options...
poleposters Posted April 13, 2008 Share Posted April 13, 2008 strange. I'm using the same script from the PHP and MYSQL for dynamic websites book.I'm not having trouble. Check out this link at sitepoint. You might need something more robust. http://www.sitepoint.com/article/advanced-email-php/ Link to comment https://forums.phpfreaks.com/topic/100757-mail-works-sometimes-to-some-email-addresses/#findComment-516025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.