Click to See Complete Forum and Search --> : PHP using external SMTP server on OS X?
How can I get PHP configured to use an external SMTP server on OS X Server. Out of the box it's configured to use the local copy of SMTP, but we won't be running SMTP on our OS X Server. I copied a php.ini file which PHP is recognizing, but the SMTP= directive in there is not having any effect. Any ideas?
Thanks,
John
Look for this line
;SMTP = localhost
uncomment it by removing the ";" like so
SMTP = localhost
Change the "localhost" to the ip-address or domain name of your mailserver eg:if your mailservers domain name is "smtp.xx.xx"
then:
SMTP = smtp.xx.xx
If this does not help then maybe your machine
on which u have php installed, does not recognize or cant reach the machine with the smtp server by its domain name. In this case try giving the IP address.
SMTP = ***.**.**.**
If it still does not work then you might need to check your smtp servers configuration.
Actually, I have the same problem as John.
I tried to uncomment the SMTP line in the PHP.INI. I also tried to use IP address instead of domain name but it still does not work.
Any suggestion ?
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.