"localhost" port 25, verify your "SMTP" and "smtp_port" sett

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

"localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby gauri_agr » 07. September 2010 03:57

Hi ALl,

I setup the apache friend server. I am trying to send a simple mail using php and getting the following error

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\website\alpha\sendmail.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\website\alpha\sendmail.php:6) in C:\xampp\htdocs\website\alpha\sendmail.php on line 7


Do i need to install this or where should I make the changes. Php.ini has smtp server as localhost and port as 25.

Thanks & Regards
Gauri
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby Stepke-DSL » 07. September 2010 06:25

Is there a Mailserver installed? Mercury, hMailserver,...?
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby gauri_agr » 07. September 2010 16:49

no. But after your reply I started mercury and found the same error
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby WilliL » 07. September 2010 17:19

did you configurate mercury?
whats the output of port-check utility?

please use in future the english part of the board below
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby gauri_agr » 07. September 2010 19:08

here is the out put


Service Port Status
============================================================================
Apache (HTTP) 80 Program: C:\xampp\apache\bin\httpd.exe
Apache (WebDAV) 81 free
Apache (HTTPS) 443 Program: C:\xampp\apache\bin\httpd.exe

MySQL 3306 Program: C:\xampp\mysql\bin\mysqld.exe

FileZilla (FTP) 21 free
FileZilla (Admin) 14147 free

Mercury (SMTP) 25 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (POP3) 110 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (IMAP) 143 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (HTTP) 2224 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (Finger) 79 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (PH) 105 Program: C:\xampp\MercuryMail\mercury.exe
Mercury (PopPass) 106 Program: C:\xampp\MercuryMail\mercury.exe

Tomcat (AJP/1.3) 8009 free
Tomcat (HTTP) 8080 free
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby gauri_agr » 07. September 2010 19:10

I didn't configure mercury but when I downloaded apache friend, it might have configured automatically
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13


Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby gauri_agr » 08. September 2010 03:19

Hi thanks for replying. I do not understand here why should I bother about Mercury server. I need to set my localhost as the mail server. Moreover I am not starting the mercury server.

I am novice so please pardon me for any nonsense question. Also I tried the solution given in the thread but none is working.

Thanks & Regards
Gauri
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby WilliL » 08. September 2010 09:07

gauri_agr wrote:I do not understand here why should I bother about Mercury server. I need to set my localhost as the mail server.

.. and which systen should handle smtp and/or pop to send/recieve mails?
Instead of Mercury you could use sendmail (I have no experience) please use board search.
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: "localhost" port 25, verify your "SMTP" and "smtp_port" sett

Postby Nobbie » 08. September 2010 10:53

gauri_agr wrote:I am novice


That is the main problem.

Running and configurung an email server is a pretty difficult task and requires a lot(!) of knowledge, far from "novice". It is a job for a well educated system administrator to configure and run an email server. PHP only provides an API for addressing an email server, but of course cannot send emails directly.
Nobbie
 
Posts: 8768
Joined: 09. March 2008 13:04

Re: "localhost" port 25, verify your "SMTP" and "smtp_port"

Postby atramos » 28. November 2010 19:15

First of all, ignore the recent poster telling you that setting up an SMTP server is difficult and requires professional expertise etc. BS!! XAMPP was designed for novices to get stuff done 8)

To resolve the localhost Port 25 connection error, you just need to activate the Mercury SMTP server which comes with XAMPP and can be started/stopped from the XAMPP Control Panel.

It almost works right out of the box, I only had to make one adjustment: In Mercury Admin, go into Configuration -> Protocol Modules ... and disable everything you don't need (in my case, disable all but Mercury SMTP, to resolve the port 25 error). Don't forget to restart Mercury after changing the config.
atramos
 
Posts: 1
Joined: 28. November 2010 19:11

Re: "localhost" port 25, verify your "SMTP" and "smtp_port"

Postby Nobbie » 28. November 2010 21:12

atramos wrote:First of all, ignore the recent poster telling you that setting up an SMTP server is difficult and requires professional expertise etc. BS!! XAMPP was designed for novices to get stuff done 8)


Thank you for your support.

I think, you are the right man to answer all incoming questions about Mercury etc. - until now it seemed to be difficult for novices to get things running. THIS IS OVER NOW! Thanks in advance to you, simply answer all the questions about this easy email stuff. It was all BULLSHIT - nice to have you!

I really appreciate that!
Nobbie
 
Posts: 8768
Joined: 09. March 2008 13:04


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 9 guests