Re: php.ini for UNIX sendmail????
| From: | Scott Fletcher | Date: | Wed, 19 Feb 2003 14:00:40 +0000 |
| Subject: | Re: php.ini for UNIX sendmail???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136175@lists.php.net to get a copy of this message | ||
Not that I know of..
Found out the reason Yahoo reject the email I send to Yahoo is because the
'From: ' address isn't xyz@abcoa.com with the proper domain name. What
Yahoo got is root@chevy in the 'From: ' section of the email. This is the
email that is send from the Unix server. So, I tried overriding it with the
'From: xyz@abcoa.com' option in the mail function. Unfortunately that
doesn't work because root@chevy override that 'From: ' option. The
workaround to the problem in Unix is to use the hostname resolution in the
/etc/hosts file. I'm not having much luck yet. Because I am only able to
get Yahoo to accept my email if it is outside of the abcoa.com in the
/etc/hosts file but return with an unknown error message for any email that
end with abcoa.com.
"Robin Mordasiewicz" <robin@primus.ca> wrote in message
news:Pine.LNX.4.33.0302190216580.21848-100000@persephone.tor.primus.ca...
> Is there any way to specify to use a remote smtp server in the php.ini
>
> On Tue, 18 Feb 2003, Scott Fletcher wrote:
>
> > Well, okay, even with the '\r\n' path, I still have problem. Here's
the new script and I retested it.
> >
> > --clip--
> > $message = "This is a test....";
> >
> > mail("zookqvalem@yahoo.com", "the subject", $message,
> > "From: webmaster@$SERVER_NAME\r\n"
> > ."Return-Path: scott@abcoa.com\r\n"
> > ."Reply-To: webmaster@$SERVER_NAME\r\n"
> > ."X-Mailer: PHP/".phpversion()."\r\n");
> > --clip--
> >
> > So far, I never got the email at yahoo and I never got the email at
abcoa.com.....
> > "Adam Voigt" <adam@cryptocomm.com> wrote in message
news:1045583863.1934.11.camel@beowulf.cryptocomm.com...
> > Well your missing your \r\n at the end of your return path.
> >
> > On Tue, 2003-02-18 at 10:57, Scott Fletcher wrote:
> > Here's the command...
> >
> > --clip--
> > mail("zookqvalem@yahoo.com", "the subject", $message,
> > "From: webmaster@$SERVER_NAME\r\n"
> > ."Return-Path: scott@abcoa.com"
> > ."Reply-To: webmaster@$SERVER_NAME\r\n"
> > ."X-Mailer: PHP/" . phpversion());
> > --clip--
> >
> > The bad thing is that when I send the mail. I never get an email
back when something is not working right by using the return-path.
> >
> >
> > "Adam Voigt" <adam@cryptocomm.com> wrote in message
news:1045582206.1976.8.camel@beowulf.cryptocomm.com...
> > Oh, ok, well how about your PHP code then (the actual mail() line)?
> >
> > On Tue, 2003-02-18 at 10:34, Scott Fletcher wrote:
> > Here's is the response to the command, 'where sendmail'.
> > >>bash: where: command not found
> >
> > So, I don't have a where command but I did the phpinfo() and it
showed .....
> >
> > --clip--
> > Directive || Local Value || master value
>
--------------------------------------------------------------------------
------------------------------
> > sendmail_from || no value || no value
> > sendmail_path || /usr/sbin/sendmail -t -i ||
/usr/sbin/sendmail -t -i
> > --clip--
> >
> > I don't have email problem when I send email to anywhere, the only
problem is the yahoo itself...
> >
> > Thanks...
> > "Adam Voigt" <adam@cryptocomm.com> wrote in message
news:1045581738.1976.6.camel@beowulf.cryptocomm.com...
> > Umm, are you asking for Sendmail's path?
> > It's usually /usr/bin/sendmail -t -i but you can verify where it is
> > on your system by typing "where sendmail".
> >
> > On Tue, 2003-02-18 at 10:25, Scott Fletcher wrote:
> > Hi!
> >
> > What is the appropriate filepath with the flag command for the
sendmail on
> > the UNIX machine?? I send an email to yahoo and got the error
message which
> > I'm going to paste it here...
> >
> > --clip--
> > ----- The following addresses had permanent fatal errors -----
> > xyz@yahoo.com
> >
> > --- The transcript of the session follows ---
> > ... while talking to mx2.mail.yahoo.com.:
> > >>> MAIL From:<root@chevy> SIZE=40
> > <<< 501 Syntax error in parameters or arguments
> > 501 xyz@yahoo.com... Data format error
> > --clip--
> >
> > One thing I know for sure is that the sendmail is working and that
hte
> > PHP code is working. I don't think I did the bad php command. Could
it be
> > the sendmail command be set wrong???
> >
> > Thanks,
> > FletchSOD
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > Adam Voigt (adam@cryptocomm.com)
> > The Cryptocomm Group
> > My GPG Key:
> > http://64.238.252.49:8080/adam_at_cryptocomm.asc
> > --
> > Adam Voigt (adam@cryptocomm.com)
> > The Cryptocomm Group
> > My GPG Key:
> > http://64.238.252.49:8080/adam_at_cryptocomm.asc
> >
>
> --
> Robin Mordasiewicz
> 416-207-7012
> UNIX System Developer
> Primus Canada
>