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:
Ralf Becker 2003-05-30 16:11:36 +00:00
parent 57cdfaaf7e
commit b6ef1b3605

View File

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