php mail() is returning true but emails are not sent. why?

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
krishna.p
Forum Newbie
Posts: 19
Joined: Fri May 23, 2008 8:12 am

php mail() is returning true but emails are not sent. why?

Post by krishna.p »

Hi Experts,
Iam new to PHP. In my code iam using mail() function to send emails. In almost all the cases the mails are sent successfully. However, in rare cases the emails are not sent though mail() function is returnimg TRUE. I would like to know why this wierd bevior is occuring to some of the emails?
do i need to depend on any other parameter other than mail function's return code like true or false. My remaining part of code depends on mail functions true. for some of these emails it is returning true but no emails are sent. Would appreciate if you could please help me in solving this problem. Thanks in advance.

Thanks,
Krishna.p
User avatar
Skoalbasher
Forum Contributor
Posts: 147
Joined: Thu Feb 07, 2008 8:09 pm

Re: php mail() is returning true but emails are not sent. why?

Post by Skoalbasher »

krishna.p wrote:Hi Experts,
Iam new to PHP. In my code iam using mail() function to send emails. In almost all the cases the mails are sent successfully. However, in rare cases the emails are not sent though mail() function is returnimg TRUE. I would like to know why this wierd bevior is occuring to some of the emails?
do i need to depend on any other parameter other than mail function's return code like true or false. My remaining part of code depends on mail functions true. for some of these emails it is returning true but no emails are sent. Would appreciate if you could please help me in solving this problem. Thanks in advance.

Thanks,
Krishna.p
Post your code, It'll help determine what's going wrong.
Post Reply