brian Posted December 3, 2011 Share Posted December 3, 2011 Well am trying to send mail using php mail function. but every time it shows "[size="1"]mail() [[url="http://localhost/phptest/function.mail"]function.mail[/url]]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()[/size]" such error. When i cheked my php.ini file in C:\wamp\bin\apache\Apache2.2.17\bin\php.ini it shows SMTP = localhostsmtp_port = 25sendmail_from = santosh_shah777@yahoo.commail.add_x_header = On Well am new to it i try to configure it but i cant able to solve this on my own. Any help will be greatly appreciated . Link to comment Share on other sites More sharing options...
thescientist Posted December 3, 2011 Share Posted December 3, 2011 do you have a mailserver on your local machine? Is this your personal computer or on a server? SMTP servers aren't just automatically present on your typical laptop/PC. Link to comment Share on other sites More sharing options...
brian Posted December 4, 2011 Author Share Posted December 4, 2011 yea this is my personal computer. i dont think i have mail server in my localhost. How to install mail server in my wamp any idea.? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 5, 2011 Share Posted December 5, 2011 There's a list of mail servers here. PHP uses an SMTP server for outgoing email. Your ISP may not allow you to operate a mail server on your account. http://en.wikipedia.org/wiki/List_of_mail_servers Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.