Unstoppable Domains

PHP mail error

Spaceship Spaceship
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
•••
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
•••
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
•••
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
•••
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
•••
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
•••
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
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back