sivaprakas Posted April 22, 2009 Share Posted April 22, 2009 Hi i m new to PHP i try to send simple email msg but i got the following error Failed to connect to mailserver at "localhost:8080" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() i run both IIS and Apache server on my machine IIS port 80 Apache port 8080 my php SMTP configuratiuon is [mail function] ; For Win32 only. SMTP = localhost:8080 smtp_port = 25 so how can i solve this problem Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 22, 2009 Share Posted April 22, 2009 The real question is do you have a mail server? Php is just a web server language extension and the php mail() function or any php mail class just interfaces to the sending mail server. Quote Link to comment Share on other sites More sharing options...
sivaprakas Posted April 22, 2009 Author Share Posted April 22, 2009 so can u tel me where can i download mail server which mail server is easy to configure with php and apache Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 22, 2009 Share Posted April 22, 2009 What is your overall goal? You can install a local mail server for testing (send mail to yourself) or you can use your ISP's mail server (requires using SMTP authentication, which requires use of one of the php mailer classes.) If you want to actually send email to another mail server from a local mail server your local mail server must have a domain name associated with it and proper DNS zone records on a DNS server for other mail servers to accept mail from it. 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.