npsari Posted May 6, 2007 Share Posted May 6, 2007 I am using the below normal mail function <?php $to = "someone@hotmail.com"; $email = "someone@yahoo.com"; $subject = "This is a new message"; $message = "Hi there, this message should arrive"; mail($to, $subject, $message, "From: $email"); echo "The email has been sent."; ?> But the emails never reach Nothing arrives to destination Only few times it does What do famous sites use to deliver their emails They cant be using this one Does anyone know why this is happening Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/ Share on other sites More sharing options...
supermerc Posted May 6, 2007 Share Posted May 6, 2007 are you using free hosting? Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246579 Share on other sites More sharing options...
springo Posted May 6, 2007 Share Posted May 6, 2007 Check if your hosting has SMTP disabled. Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246580 Share on other sites More sharing options...
npsari Posted May 6, 2007 Author Share Posted May 6, 2007 no, i am not using Free hosting actually ohh, how can I see if the SMTP is disabled Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246581 Share on other sites More sharing options...
tawevolution Posted May 6, 2007 Share Posted May 6, 2007 I have the same problem. in the phpinfo thing it says: SMTP --> localhost smtp_port --> 25 Why does this not work - is it because its set to localhost? Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246591 Share on other sites More sharing options...
neel_basu Posted May 6, 2007 Share Posted May 6, 2007 The IP of your Host is blocked by othere email services . may be some other users have sent so many unsolicited mails before. Or You need to sen MIME Mail. You can use http://zigmoyd.sourceforge.net/man/mail.php With authentication On(true). If uused with auth true. It will Use another server(I've tested it with http://www.bluebottle.com email account.)(In this case It will use bluebottle's email server) to send Mails. the current version 1.0.1.0 has some bugs Use the Previous version Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246595 Share on other sites More sharing options...
npsari Posted May 6, 2007 Author Share Posted May 6, 2007 Thanks for the info I will work on it Quote Link to comment https://forums.phpfreaks.com/topic/50234-why-the-mail-function-does-not-deliver-emails/#findComment-246612 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.