image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old February 24th, 2005, 07:02 AM
garymum4d's Avatar
Idiot
 
Join Date: Dec 2002
Posts: 255
Thanks: 0
Thanked 0 Times in 0 Posts
garymum4d is on a distinguished road
<?php mail();?> question

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
__________________
Apple user since about OS6
Reply With Quote
  #2  
Old February 24th, 2005, 10:41 AM
andehlu's Avatar
this modern love
 
Join Date: Feb 2004
Location: torontoCANADA
Posts: 244
Thanks: 0
Thanked 0 Times in 0 Posts
andehlu is on a distinguished road
compile sendmail? :|
__________________
site | blog | garageband experiments
Reply With Quote
  #3  
Old February 24th, 2005, 11:45 AM
garymum4d's Avatar
Idiot
 
Join Date: Dec 2002
Posts: 255
Thanks: 0
Thanked 0 Times in 0 Posts
garymum4d is on a distinguished road
Quote:
Originally Posted by andehlu
compile sendmail? :|
OK
1. How do I do This?
2. Will this effect the mail server running on the same Machine?
__________________
Apple user since about OS6
Reply With Quote
  #4  
Old February 24th, 2005, 12:57 PM
andehlu's Avatar
this modern love
 
Join Date: Feb 2004
Location: torontoCANADA
Posts: 244
Thanks: 0
Thanked 0 Times in 0 Posts
andehlu is on a distinguished road
oh it has a mail server running? which one? just use that.... check yer php.ini is set to localhost for smtp... should work...
__________________
site | blog | garageband experiments
Reply With Quote
  #5  
Old February 24th, 2005, 03:22 PM
garymum4d's Avatar
Idiot
 
Join Date: Dec 2002
Posts: 255
Thanks: 0
Thanked 0 Times in 0 Posts
garymum4d is on a distinguished road
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!!!
__________________
Apple user since about OS6
Reply With Quote
  #6  
Old February 24th, 2005, 04:23 PM
andehlu's Avatar
this modern love
 
Join Date: Feb 2004
Location: torontoCANADA
Posts: 244
Thanks: 0
Thanked 0 Times in 0 Posts
andehlu is on a distinguished road
http://www.xacting.com/archive/000055.html
__________________
site | blog | garageband experiments
Reply With Quote
  #7  
Old February 24th, 2005, 04:48 PM
garymum4d's Avatar
Idiot
 
Join Date: Dec 2002
Posts: 255
Thanks: 0
Thanked 0 Times in 0 Posts
garymum4d is on a distinguished road
Thanks andehlu

this sorted it.

Thanks again!!
__________________
Apple user since about OS6
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 01:45 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.