atulkul Posted October 12, 2006 Share Posted October 12, 2006 Hello all,PHP mail is giving error like the following:Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.iniplz let me know what is the problem and solution for it. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 12, 2006 Share Posted October 12, 2006 You need to either setup an SMTP server on the computer that has PHP installed on. Or point PHP to an existing (public) SMTP mail server, such as your ISPs email server (if they do not require authentication for emails to be sent).You need to open up the php.ini and find the the following lines:[code]; For Win32 only.SMTP = localhostsmtp_port = 25[/code]Change localhost to your ISPs SMTP mail servers addresss, eg: smtp.hostname.comthe smtp_port is fine. Quote Link to comment Share on other sites More sharing options...
atulkul Posted October 13, 2006 Author Share Posted October 13, 2006 Ok, i will tell you my server configuration its Apache + PHP + Mysql and apache installed on port 80, site is running on apache , while IIS is installed with smtp server , but i want to know how to active SMTP server using Apache, plz resolve this issue Quote Link to comment 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.