sfxworks Posted July 6, 2011 Share Posted July 6, 2011 $subject = "sfxworks minecraft server"; $message = "Thank you for pre-registering. You have been automatically added to the whitelist and authentication database. When you login for the first time, use the command /redeem to recieve a full set of leather armor, iron tools, and 7 diamonds! Keep yourself posted at sfxworksmc.blogspot.com! \n -sfxworks"; $from = "donotreply@sfxworks.net"; $headers = "From:" . $from; mail($_POST['email'],$subject,$message,$headers) or die("Failed." . mysql_error()); echo $_POST['email']; ...Why in the world is this not working? Does my web server have to have donotreply@sfxworks.net registered? I mean, I got it once, but it was from some other email address. ( sfxworks@p3nlhg656.shr.prod.phx3.secureserver.net) ...Help? Quote Link to comment https://forums.phpfreaks.com/topic/241240-why-doesnt-this-send-at-all/ Share on other sites More sharing options...
AyKay47 Posted July 6, 2011 Share Posted July 6, 2011 first, using mysql_error() with the mail function accomplishes absolutely nothing. mail() has nothing to do with mysql... Can you re-post your code with is not being in URL format please Quote Link to comment https://forums.phpfreaks.com/topic/241240-why-doesnt-this-send-at-all/#findComment-1239164 Share on other sites More sharing options...
Network_ninja Posted July 7, 2011 Share Posted July 7, 2011 In order for the mail function to work out you have to have a Mail Server or Mail Agent Transport such as sendmail. If your system is already uploaded to the internet you have to call your webhost to make it available for you.... Hope this help... Quote Link to comment https://forums.phpfreaks.com/topic/241240-why-doesnt-this-send-at-all/#findComment-1239436 Share on other sites More sharing options...
Pikachu2000 Posted July 7, 2011 Share Posted July 7, 2011 GoDaddy may require the additional 5th parameter as described in the manual entry for mail. Check their FAQs and other online documentation to verify that. Quote Link to comment https://forums.phpfreaks.com/topic/241240-why-doesnt-this-send-at-all/#findComment-1239438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.