Reply to Re: mail() and Apple MacIntosh

Your name:

Reply:


Posted by Koncept on 01/05/07 22:48

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация