Mail problem

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
mmmimran
Forum Newbie
Posts: 1
Joined: Wed Aug 15, 2007 4:09 am

Mail problem

Post by mmmimran »

The mail function is not working

it's says like this - "SMTP server response: 550 5.7.1 Relaying not allowed: wics@sltnet.lk "

wics@sltnet.lk is my mail i cannot send mail to it via php

i have configured everything in php.ini file .

but still the problem appears. Please someone help me
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

You have to use the mail (SMTP) server which serves the sltnet.lk. domain. I found these two mail servers:
sltnet.lk. 2090 IN MX 10 laknet1.sltnet.lk.
sltnet.lk. 2090 IN MX 10 laknet2.sltnet.lk.
So, you have to use either laknet1.sltnet.lk or aknet2.sltnet.lk as your outgoing SMTP server ...

If so, what is your server OS and your mail server?
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply