siezma Posted May 18, 2006 Share Posted May 18, 2006 Hello everbody!I have a problem about php mail.The mail function,which i use, is below;mail($recipient, $subject, $msg,"From: $from");The script works well.I have a mail address from Yahoo and i can get the mails which the script sents.But I have realized that some of the users can't get the mails because of the reason below;May 17 10:28:09 orange sendmail[17523]: k4HES9c9017523: ruleset=check_mail,arg1=<nobody@tttech.ekkum.ca>, relay=ikdesh.ekkum.com [64.187.28.130],reject=553 5.1.8 <nobody@tttech.ekkum.ca>... Domain of sender addressnobody@tttech.ekkum.cadoes not existSender seems to be 'nobody@domainname'.If the users have a picky SMTP Server like the one above,they can't get the mail!!!Is there a way to work around it by setting some sender?I have search on the net and i have found one solution,but the sender says that it is not gaurantee!!mail($recipient,$subject, $msg,"From: mail@domainname\nReply-To:mail@domainname\nX-Mailer:PHP/" . phpversion());ThanksHave a great day Quote Link to comment https://forums.phpfreaks.com/topic/9950-php-mail-nobody-problem/ Share on other sites More sharing options...
kenrbnsn Posted May 18, 2006 Share Posted May 18, 2006 Use the 5th parameter to the mail() function to specify the "Return-path:" header.[code]<?php$fifth_param = "-f $from";mail($recipient, $subject, $msg,"From: $from",$fifth_param);?>[/code]Ken Quote Link to comment https://forums.phpfreaks.com/topic/9950-php-mail-nobody-problem/#findComment-36999 Share on other sites More sharing options...
siezma Posted May 18, 2006 Author Share Posted May 18, 2006 [!--quoteo(post=375059:date=May 18 2006, 04:38 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ May 18 2006, 04:38 PM) [snapback]375059[/snapback][/div][div class=\'quotemain\'][!--quotec--]Use the 5th parameter to the mail() function to specify the "Return-path:" header.[code]<?php$fifth_param = "-f $from";mail($recipient, $subject, $msg,"From: $from",$fifth_param);?>[/code]Ken[/quote] [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Thanks a lot Ken. I will try the fifth parameter.Bye Quote Link to comment https://forums.phpfreaks.com/topic/9950-php-mail-nobody-problem/#findComment-37002 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.