View previous topic :: View next topic |
Author |
Message |
Ian McPherson -
Joined: 12 Jun 2007 Posts: 23
|
Posted: Tue Jun 12, 2007 11:31 pm Post subject: Configuring PHP for email server or sendmail on Mac OS X |
|
|
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 |
|
|
rrinc -
Joined: 24 Feb 2006 Posts: 725 Location: Arkansas, USA
|
Posted: Tue Jun 12, 2007 11:56 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jun 27, 2007 11:44 pm Post subject: Re: Configuring PHP for email server or sendmail on Mac OS X |
|
|
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 |
|
|
Ian McPherson -
Joined: 12 Jun 2007 Posts: 23
|
|
Back to top |
|
|
!abanm -
Joined: 22 Mar 2008 Posts: 1
|
Posted: Sat Mar 22, 2008 3:49 am Post subject: |
|
|
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 |
|
|
|