mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:20 +01:00
fix for bug #3427: no email-notifications
send class does not default to port 25, as email does when smpt-port is left empty in the email-site-config
This commit is contained in:
parent
57cdfaaf7e
commit
b6ef1b3605
@ -349,7 +349,8 @@
|
||||
$timeout = 5;
|
||||
|
||||
// now we try to open the socket and check, if any smtp server responds
|
||||
$socket = fsockopen($GLOBALS['phpgw_info']['server']['smtp_server'],$GLOBALS['phpgw_info']['server']['smtp_port'],$errcode,$errmsg,$timeout);
|
||||
$smtp_port = $GLOBALS['phpgw_info']['server']['smtp_port'] ? $GLOBALS['phpgw_info']['server']['smtp_port'] : 25;
|
||||
$socket = fsockopen($GLOBALS['phpgw_info']['server']['smtp_server'],$smtp_port,$errcode,$errmsg,$timeout);
|
||||
if (!$socket)
|
||||
{
|
||||
$this->err['code'] = '420';
|
||||
|
Loading…
Reference in New Issue
Block a user