mail() problems

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
User avatar
Klyve1
Forum Newbie
Posts: 14
Joined: Wed Sep 18, 2002 4:27 am
Location: Hove, UK

mail() problems

Post by Klyve1 »

I have a very simple email using mail() that works fine on my dev server and on a hosted site but not with my latest host.
They can't tell me what's going wrong at all and I'm at a loss!!

Is there any way to debug what's not working for mail()?
I.e. where it's going, what it's looking for etc.

php.ini points to sendmail ok by the way.
My host tells me they use exim, but this shouldn't make a difference, should it?

Thanks
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Do they allow execution of the shell commands from PHP? mail() function requires shell to work.
User avatar
Klyve1
Forum Newbie
Posts: 14
Joined: Wed Sep 18, 2002 4:27 am
Location: Hove, UK

Post by Klyve1 »

I've been fiddling around and found that it works if I send to a .co.uk but not to the .com!?

Anyone know why this may be? I've got it working for .co.uk's and .com's but not the .com I need!
Post Reply