[function.mail]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dawaxing
Forum Newbie
Posts: 1
Joined: Tue Jul 13, 2010 11:50 pm

[function.mail]

Post by dawaxing »

Dear all,

i have developed a simple website for my personal interest,in this site i have a page to refer to friends.
it capture the mail id of friend i enter and once i submit the button it sends a message to the refereed person.
now my problem is when i enter my local id :- dor980@dit.gov.bt it works fine and i receive mail. but when i enter yahoo and gmail in the refereed person id
it give me following Warninig :
Warning: mail() [function.mail]: SMTP server response: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser) in C:\xampp\htdocs\sandel wood\refertofan.php on line 93


then code in line no 93 in refertofan is :- mail($f_email,$subject,$body_message,$headers);

why is this warning coming and mail is not fired to the refereed person id?
is it because this site is not hosted and not working in yahoo and gamil,where as it works in local id becuse it in in the same LAN.

please suggest me what is the mistake?
your help and suggestion is highly appreciated.
dawaxing
Post Reply