query regarding mail

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Mon May 16, 2011 2:02 am

query regarding mail

Postby hiral » Mon May 16, 2011 2:13 am

how can i start smtp server in apache??
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\PhpLearn\sendmail.php on line 8

User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: query regarding mail

Postby egami » Mon May 16, 2011 8:32 am

Well, you don't have a sendmail application running. Which Mailer did you install?
Do you have a firewall turned on which is blocking port 25 to localhost/localip?

Many factors come into play here, the first of which that you are using Windows.

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest