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
=<nobody@tttech.ekkum.ca>, relay=ikdesh.ekkum.com [64.187.28.130],
reject=553 5.
1.8 <nobody@tttech.ekkum.ca>... Domain of sender address
nobody@tttech.ekkum.ca
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.