Jump to content

Php Mail "Nobody" problem


siezma

Recommended Posts

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
=<[email protected]>, relay=ikdesh.ekkum.com [64.187.28.130],
reject=553 5.
1.8 <[email protected]>... Domain of sender address
[email protected]
does not exist

Sender 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());

Thanks
Have a great day


Link to comment
https://forums.phpfreaks.com/topic/9950-php-mail-nobody-problem/
Share on other sites

[!--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
Link to comment
https://forums.phpfreaks.com/topic/9950-php-mail-nobody-problem/#findComment-37002
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.