[PHP-DB] mail() on Mac OS X

2002-01-15 Thread Adam Royle

I have been trying for months now (on and off) to get mail() working in 
OS X. I have trid various things, but this is my current setup. If you 
have any suggestions or if you could put me in the right direction, then 
I would be glad.

- I am using PHP v4.0.6 on Mac OS X 10.1 (pre-compiled with cool options 
from entropy.ch)
- I installed Communigate Pro (a mail server -- and this works when I 
use it in Mail.app)
- I don't want to use sendmail, I want to use the mail server I have 
already installed.
- I have these two lines in my php.ini

SMTP = ifunk.dyndns.org
sendmail_from = [EMAIL PROTECTED]

my sendmail_path is still the same as default... but I was just thinking 
that PHP would use my smtp server(ifunk.dyndns.org)

Can someone slap me in the face if I'm misunderstanding something, or 
help me if you can.

Thanks,
Adam.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] mail() on Mac OS X

2002-01-15 Thread Paul Burney

on 1/15/02 7:38 AM, Adam Royle at [EMAIL PROTECTED] appended the
following bits to my mbox:

> I have been trying for months now (on and off) to get mail() working in
> OS X. I

> - I am using PHP v4.0.6 on Mac OS X 10.1 (pre-compiled with cool options
> from entropy.ch)

> - I installed Communigate Pro (a mail server -- and this works when I
> use it in Mail.app)

1) This post should've gone to PHP-General since it isn't related to
databases.

> SMTP = ifunk.dyndns.org
> sendmail_from = [EMAIL PROTECTED]

2) These values are only valid for Windows php installs, not for Unix (i.e.,
Mac OS X.

> - I don't want to use sendmail, I want to use the mail server I have
> already installed.

FWIW, OS X comes with sendmail installed, you just need to enable it in the
/etc/hostconfig file.

Perhaps Communigate Pro has a "sendmail" type wrapper that you can point the
php sendmail value to.  I've heard that qmail has such a script.  Check with
CG Pro support for more info.

Another option would be to use Manuel Lemos' excellent SMTP class for
sending you email directly through an smtp server.



Of course, then you wouldn't actually be using the mail() function.

HTH.

Paul





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]