|
Posted by kenoli on 01/06/07 10:25
Thanks. I am using Tiger and I did download PostFix and it seemed to
do what it wanted to do and yet I still can't send mail from php. In
addition, when I try to sent from Apple:Mail using localhost, as the
instructions at the PostFix site direct, it also won't send.
I tried a remote telnet login as PostFix site directed to see if there
was an ISP issue and that worked fine.
My installation of Tiger has /usr/sbin/sendmail installed and as I
understand php looks for sendmail there.
I modified my "/etc/hostconfig" file as us instructed adding the line
"MAILSERVER=-YES-". I hope this is still appropriate under Tiger.
There was no such line in the file when I opened it.
--Kenoli
Koncept wrote:
> In article <1167923549.084121.241710@6g2000cwy.googlegroups.com>,
> kenoli <kenoli@igc.org> wrote:
>
> > Thanks -- There was no line for "MAILSERVER" so I added one placing
> > "=-YES-"
> >
> > It still isn't working. I tried implementing:
> >
> > telnet localhost 25
> >
> > from the terminal. This was suggested at the Postfix web site to test
> > sendmail. I got this response:
> >
> > ~$ telnet localhost 25
> > Trying ::1...
> > telnet: connect to address ::1: Connection refused
> > Trying 127.0.0.1...
> > telnet: connect to address 127.0.0.1: Connection refused
> > telnet: Unable to connect to remote host
> >
> > Any feedback on what is happening?
> >
> > Does Apple actually supply a mailserver locally (using "sendmail",
> > Apache???) or does it use one of the remote mailservers I have set in
> > Apple:MAIL
> >
> > There is a way to set the path to sendmail in php.ini which is not
> > normally set. "sendmail" is present on the computer. I tried setting
> > the path and that had no effect.
> >
> > I tried connecting to the Postfix telnet host using:
> >
> > telnet cutedgesystems.com 25
> >
> > and was successfully connected.
> >
> > Here is the php code that is sending the email:
> >
> > // Send the email.
> > $body = "Thank you for registering at the User Registration site.
> > To activate your account, please click on this link:\n\n";
> > $body .= "http://localhost/~kenolioleari/ . . .;
> > mail($_POST['email'], 'Registration Confirmation', $body, 'From:
> > [my email address]');
> >
> > My remote SMTP server uses port 26. If I change php.ini to port 26 an
> > use my email as the outgoing email address, it does send an email. If
> > I leave it at port 25 and send an email to another address, it does not
> > work.
> >
> > !!!!!!???????
> >
> > --Kenoli
>
> First thing ... What version of OS X are you running? Prior to Tiger,
> OSX used sendmail. Regardless, mailservers come built-in with both OS
> versions, it's just that Tiger moved to Postfix.
>
> Try the Sendmail enabler if this applies to you:
>
> http://cutedgesystems.com/software/SendmailEnabler/
>
> --
> Koncept <<
> "The snake that cannot shed its skin perishes. So do the spirits who are
> prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Navigation:
[Reply to this message]
|