Changeset 158 in subversion for trunk/roundcubemail/program/include/rcube_smtp.inc
- Timestamp:
- Mar 3, 2006 11:21:53 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_smtp.inc
r113 r158 82 82 83 83 // try to connect to server and exit on failure 84 if (PEAR::isError($SMTP_CONN->connect($smtp_timeout))) 84 $result = $SMTP_CONN->connect($smtp_timeout); 85 if (PEAR::isError($result)) 85 86 { 86 87 $SMTP_CONN = null; 87 $SMTP_ERROR .= "Connection failed \n";88 $SMTP_ERROR .= "Connection failed: ".$result->getMessage()."\n"; 88 89 return FALSE; 89 90 } … … 103 104 104 105 $smtp_auth_type = empty($CONFIG['smtp_auth_type']) ? NULL : $CONFIG['smtp_auth_type']; 105 106 if (PEAR::isError($SMTP_CONN->auth($smtp_user, $smtp_pass, $smtp_auth_type))) 106 $result = $SMTP_CONN->auth($smtp_user, $smtp_pass, $smtp_auth_type); 107 108 if (PEAR::isError($result)) 107 109 { 108 110 smtp_reset(); 109 $SMTP_ERROR .= " authentication failure\n";111 $SMTP_ERROR .= "Authentication failure: ".$result->getMessage()."\n"; 110 112 return FALSE; 111 113 }
Note: See TracChangeset
for help on using the changeset viewer.
