vani sri Posted July 16, 2008 Share Posted July 16, 2008 Hi all, i am using PHP 5.2.5 version. In this the mail function is not working. Its shows the mail send successfully. But the mail was not received. Pls any one help me... Regards, vani Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/ Share on other sites More sharing options...
cooldude832 Posted July 16, 2008 Share Posted July 16, 2008 odds are your headers are not be approved by the recipient server and getting the messages bounced. Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/#findComment-591287 Share on other sites More sharing options...
vani sri Posted July 16, 2008 Author Share Posted July 16, 2008 But i didn't receive the bounced mails in my server Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/#findComment-591290 Share on other sites More sharing options...
PFMaBiSmAd Posted July 16, 2008 Share Posted July 16, 2008 Post your code please. Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/#findComment-591293 Share on other sites More sharing options...
vani sri Posted July 16, 2008 Author Share Posted July 16, 2008 <? if(mail("myadd.gmail.com","Hi","This is test message","[email protected]")) echo "Mail send"; else echo "Mail not send"; ?> This is my codings Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/#findComment-591295 Share on other sites More sharing options...
PFMaBiSmAd Posted July 16, 2008 Share Posted July 16, 2008 A TRUE value from the mail() function only means that the sending mail server accepted the email. It does not mean that it was sent or that it was accepted by the receiving mail server. The format of the from address header is "From: some_address@some_domain.com". If the format was incorrect, your mail server likely discarded the email. If the format was correct and you actually put an @gmail.com from address, the gmail mail server will discard the email because it knows that it did not come from a gmail mail server. The From: address must be a valid email address hosted at the sending mail server or you must have an SPF DNS zone record at the domain in the from address that says that your mail server is authorized to send email for that domain. Quote Link to comment https://forums.phpfreaks.com/topic/114970-mail-function-in-php-525/#findComment-591297 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.