mhaey Posted October 2, 2007 Share Posted October 2, 2007 hi.. im using xampp v.1.6.1 php 5.2.1.. when i tried to send email it doesnt work.. i've already change the value in SMTP and smtp_port.. is there anyone who could help me out.. need it ASAP.. here's the error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 90, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\timesheetv10\test14_forgotpass.php on line 30 Quote Link to comment https://forums.phpfreaks.com/topic/71466-mailserver-error/ Share on other sites More sharing options...
mhaey Posted October 2, 2007 Author Share Posted October 2, 2007 i know im a noob.. but.. i badly need your help.. im still a student and still studying php.. and it would be a great help if guys like you can help me.. thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/71466-mailserver-error/#findComment-359789 Share on other sites More sharing options...
DJTim666 Posted October 2, 2007 Share Posted October 2, 2007 put this at the top of your file. <?php ini_set("stmp_port", "80"); ?> -- DJ Quote Link to comment https://forums.phpfreaks.com/topic/71466-mailserver-error/#findComment-359795 Share on other sites More sharing options...
mhaey Posted October 9, 2007 Author Share Posted October 9, 2007 i've tried so many times on this mail() function.. but still.. it doesnt work.. since i am using xampp as a server.. there is one thing i wanted to ask.. do i need to install my IIS on different port.. because... using xampp as a server doesnt need IIS... because it can conflict with port... i badly needed to run this function.. can anyone help me out.. ASAP.. thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/71466-mailserver-error/#findComment-365389 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.