calmchess Posted July 12, 2009 Share Posted July 12, 2009 I'm using php_pear to send mail....the script works from the command line but if i try to execute it through the webbrowser i get the following error. Failed to connect to mail.mchsi.com:25 [sMTP: Failed to connect socket: fsockopen() [function.fsockopen]: unable to connect to mail.mchsi.com:25 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) (code: -1, response: )] I suspect it has something to do with my php configuration but I don't know what to change....anybody have some advice? Link to comment https://forums.phpfreaks.com/topic/165697-solved-mail-script-works-from-command-line-but-fails-in-browser/ Share on other sites More sharing options...
calmchess Posted July 12, 2009 Author Share Posted July 12, 2009 didn't have include path set to /usr/share/pear in /etc/php.ini..........................fixed now! Link to comment https://forums.phpfreaks.com/topic/165697-solved-mail-script-works-from-command-line-but-fails-in-browser/#findComment-874069 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.