By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Error in sending mail using php

P: 1
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 relaying denied in C:\wamp\www\mail.php on line 15
Call Stack
# Time Memory Function Location
1 0.0015 670096 {main}( ) ..\mail.php:0
2 0.0015 671040 mail ( ) ..\mail.php:15


Sir,Please tell why this kind of error is coming and how do i fix it?i was trying to send mail from my laptop.

IN php.ini file,

My SMTP is smtp.bsnl.co.in
Port is 25
sendmail from and sendmail path are empty
I am using Wamp 2.2 in my laptop.
Jan 17 '12 #1
Share this Question
Share on Google+
1 Reply


P: 23
wampp is for development purposes...as a web developer wampp or xampp does not send mail to external servers they only relay mail to localhost and not to server on the internet.

If you want to send mail using a mail client i suggest you get Microsoft outlook or Eudora
Jan 18 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.