php mail() is returning true but emails are not sent. why?
Posted: Mon Feb 09, 2009 7:00 am
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
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