Configuring PHP for email server or sendmail on Mac OS X

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Ian McPherson
-


Joined: 12 Jun 2007
Posts: 23

PostPosted: Tue Jun 12, 2007 11:31 pm    Post subject: Configuring PHP for email server or sendmail on Mac OS X Reply with quote

Hi,

Can anyone help me to configure PHP to use my email server here for form emails?
Or do I have to use the mail function in PHP?

The php.ini file has these variables:

Quote:
[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 =


I'm no PHP expert by any stretch , but it looks like the Unix option is the only one I can use, with: usr/sbin/sendmail

Would this be correct, or am I going about this the wrong way?

Ian
Back to top View user's profile Send private message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Tue Jun 12, 2007 11:56 pm    Post subject: Reply with quote

I don't know how to configure what you're needing, but a very useful PHP library is available for sending email. http://www.swiftmailer.org/

It doesn't use the sendmail function and its way more flexible.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jun 27, 2007 11:44 pm    Post subject: Re: Configuring PHP for email server or sendmail on Mac OS X Reply with quote

Ian McPherson,

PHP 5 for Mac OS X does already know about the sendmail path by default so there is no need to update php.ini.

Doesn't the mail() function work correctly?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Ian McPherson
-


Joined: 12 Jun 2007
Posts: 23

PostPosted: Thu Jun 28, 2007 4:47 am    Post subject: Mail Reply with quote

Hi,

Quote:
Doesn't the mail() function work correctly?


Not with my email server (EIMS for MAC OS X) running. I had to use a different technique: http://www.aprelium.com/forum/viewtopic.php?p=67177

Ian
Back to top View user's profile Send private message
!abanm
-


Joined: 22 Mar 2008
Posts: 1

PostPosted: Sat Mar 22, 2008 3:49 am    Post subject: Reply with quote

i have the same problem. also want to know the solution. i read your new technique. but i don't think it's the best one. does anybody have other ideas?
_________________
my downloads
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group