Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

PHP mail error

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch
Impact
19
Hey
I just installed xamp [php mysql etc] on my PC so i can learn PHP..and i am trying to use the mail() function but i get this 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:\Program Files\xampp\htdocs\email.php on line 69
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You don't have a mail server set up on your computer so it won't work. I forget the name of a program that will do this. -looks-
 
0
Close
I have a funny feeling that MercuryMail should do this for you... I could be wrong though! It's included with XAMPP so maybe you just have to run the mercury_start.bat file to start the service (then install the service properly if it's working!)?
 
0
Close
hm i started the mercury thing and now i get this error:
Code:
Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\Program Files\xampp\htdocs\email.php on line 69
 
0
Close
There's probably a config setting to allow Mercury to relay: I don't know, I haven't used it. Just be sure to have a decent firewall if you're going to allow relaying, though :)
 
1
Close
You need a mail server to relay your outgoing mail.
Edit your php.ini file and put your ISP's mail server address in the mailserver field ;)
 
0
Close
yai thanks man:d got it working :) rep+

hm another problem now
its not sending any email..it doesnt give any error but doesnt send the email either
heres my code:
PHP:
<? mail("[email protected]","test","test1","From: [email protected]"); ?>
it doesnt show any error
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back