christite214 Posted April 18, 2006 Share Posted April 18, 2006 My settings in the php.ini are as follows:-[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = [email protected]The code i am using to test the mail facility is this:-<?phpif (@mail("[email protected]" ,"hi" , "hello")) { echo('<p>Mail sent successfully.</p>');} else { echo('<p>Mail could not be sent.</p>');}?>However i get this message mail could not be sent...... Wen i run the same code from a webhosting service i get mail sent message but i never receive the mail in my mailbox....i have put a valid mailid.Guys i need help desperately!!!!!!! Link to comment https://forums.phpfreaks.com/topic/7697-configuring-phpini-to-enable-php-mail/ Share on other sites More sharing options...
JRS Posted April 18, 2006 Share Posted April 18, 2006 [!--quoteo(post=365912:date=Apr 18 2006, 03:43 AM:name=christite)--][div class=\'quotetop\']QUOTE(christite @ Apr 18 2006, 03:43 AM) [snapback]365912[/snapback][/div][div class=\'quotemain\'][!--quotec--]My settings in the php.ini are as follows:-[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = [email protected]Guys i need help desperately!!!!!!![/quote]Christite,I'm not an expert on mail - but I believe you need to have mail server on your system. By default windows does not have one. So you need to make sure you have installed and configured a mail server on your system. Hopefully, one the guru types can offer more suggestions on what to look for.Good luckJRS Link to comment https://forums.phpfreaks.com/topic/7697-configuring-phpini-to-enable-php-mail/#findComment-28365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.