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
pull/2/head
Christian Boltz 14 years ago
parent 2f52a8402d
commit 7ed7c67fbe

@ -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);

Loading…
Cancel
Save