[20884] allow smtp auth, ssl and tls as SMTPSecure

Sigurd Nes <[email protected]>
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 20884
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20884
Author:   sigurdne
Date:     2009-11-22 20:38:27 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
allow smtp auth, ssl and tls as SMTPSecure

Modified Paths:
--------------
    people/sigurdne/modules/phpgwapi/trunk/inc/class.mailer_smtp.inc.php

Modified: people/sigurdne/modules/phpgwapi/trunk/inc/class.mailer_smtp.inc.php
===================================================================
--- people/sigurdne/modules/phpgwapi/trunk/inc/class.mailer_smtp.inc.php	2009-11-22 20:31:24 UTC (rev 20883)
+++ people/sigurdne/modules/phpgwapi/trunk/inc/class.mailer_smtp.inc.php	2009-11-22 20:38:27 UTC (rev 20884)
@@ -31,6 +31,10 @@
 			$this->IsSMTP(true);
 			$this->Host = $GLOBALS['phpgw_info']['server']['smtp_server'];
 			$this->Port = isset($GLOBALS['phpgw_info']['server']['smtp_port']) ? $GLOBALS['phpgw_info']['server']['smtp_port'] : 25;
+			$this->SMTPAuth = isset($GLOBALS['phpgw_info']['server']['smtpAuth']) && $GLOBALS['phpgw_info']['server']['smtpAuth'] == yes ? true : false;
+			$this->SMTPSecure = isset($GLOBALS['phpgw_info']['server']['smtpSecure']) ? $GLOBALS['phpgw_info']['server']['smtpSecure'] : '';
+			$this->Username = isset($GLOBALS['phpgw_info']['server']['smtpUser']) ? $GLOBALS['phpgw_info']['server']['smtpUser'] : '';
+			$this->Password =  isset($GLOBALS['phpgw_info']['server']['smtpPassword']) ? $GLOBALS['phpgw_info']['server']['smtpPassword'] : '';
 			$this->Version = 'custom - phpGroupWare 1.73';
 		}
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.