mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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
This commit is contained in:
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…
Reference in New Issue
Block a user