Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 7 of 7
  1. #1
    garymum4d's Avatar
    garymum4d is offline Idiot
    Join Date
    Dec 2002
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    <?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

  2. #2
    andehlu's Avatar
    andehlu is offline this modern love
    Join Date
    Feb 2004
    Location
    torontoCANADA
    Posts
    244
    Thanks
    0
    Thanked 0 Times in 0 Posts
    compile sendmail? :|

  3. #3
    garymum4d's Avatar
    garymum4d is offline Idiot
    Join Date
    Dec 2002
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  4. #4
    andehlu's Avatar
    andehlu is offline this modern love
    Join Date
    Feb 2004
    Location
    torontoCANADA
    Posts
    244
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh it has a mail server running? which one? just use that.... check yer php.ini is set to localhost for smtp... should work...

  5. #5
    garymum4d's Avatar
    garymum4d is offline Idiot
    Join Date
    Dec 2002
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  6. #6
    andehlu's Avatar
    andehlu is offline this modern love
    Join Date
    Feb 2004
    Location
    torontoCANADA
    Posts
    244
    Thanks
    0
    Thanked 0 Times in 0 Posts

  7. #7
    garymum4d's Avatar
    garymum4d is offline Idiot
    Join Date
    Dec 2002
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks andehlu

    this sorted it.

    Thanks again!!
    Apple user since about OS6

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •