php1 Posted June 3, 2009 Share Posted June 3, 2009 Dear all, mail() function in php is not sending mails.. although it showing "mail succesfully send" it is not sending messages. in php.ini sendmail_path = "/usr/sbin/sendmail -t -i" Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/ Share on other sites More sharing options...
JasonLewis Posted June 3, 2009 Share Posted June 3, 2009 You running this on a local server or on the internet? Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/#findComment-848375 Share on other sites More sharing options...
Dtonlinegames Posted June 3, 2009 Share Posted June 3, 2009 If its a local thing and theres a mail client missing it wouldnt say sent (I'm assuming you have suppressed errors!) try adding an extra header to your email line for From: mail($to,$subject,$content,"From: Test <[email protected]>"); Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/#findComment-848388 Share on other sites More sharing options...
php1 Posted June 3, 2009 Author Share Posted June 3, 2009 i am using local machine only i tried with from header it also nnot working Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/#findComment-848429 Share on other sites More sharing options...
JasonLewis Posted June 4, 2009 Share Posted June 4, 2009 You set up a mail server on your local machine? Something like ArGoSoft Mail Server will suffice. Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/#findComment-849059 Share on other sites More sharing options...
ubaldc36 Posted June 4, 2009 Share Posted June 4, 2009 i had a similar problem using a Lynix server. sendmail would send the message out but then force my browser to close. i ended up using nail instead of sendmail and it seems to be working. the whole thing has been a mystery to me. Chris Link to comment https://forums.phpfreaks.com/topic/160745-php-mail-function-not-working/#findComment-849218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.