<?php mail();?> question

garymum4d

Idiot
I created a php site that can send mail using <?php mail($to,$subject,$message,$header);?>

This was developed on my mac running 10.3 and Postfix Enabler and runs fine. But now I have transfered it it my server running 10.3 SERVER and it will not send mail? Postfix Enabler is not compatible with OSX server, so how do I get it to send mail
 
oh it has a mail server running? which one? just use that.... check yer php.ini is set to localhost for smtp... should work...
 
I'm Running the mailserver built into OSX server.

my php.ini file states the following:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =


Is this correct? Should I define the path for sendmail

To recap. I'm running 10.3 Server. the mailserver works fine but a php site using mail() will not send mail. This same site on a mac running 10.3 ( standard ) works fine!!!
 
Back
Top