From 7ed7c67fbea66bfa480ad1845891b2a657258f6f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 20 Oct 2011 12:13:39 +0000 Subject: [PATCH] functions.inc.php - smtp_mail(): - error_log() the error message if fsockopen() fails git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1227 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.inc.php b/functions.inc.php index 59da6b74..a080f8bb 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1404,6 +1404,7 @@ function smtp_mail ($to, $from, $data, $body = "") { $fh = @fsockopen ($smtpd_server, $smtpd_port, $errno, $errstr, $timeout); if (!$fh) { + error_log("fsockopen failed - errno: $errno - errstr: $errstr"); return false; } else { $res = smtp_get_response($fh);