mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 21:42:27 +01:00 
			
		
		
		
	Username/password for for mail model
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		| @@ -52,11 +52,8 @@ class ModelMailMail extends Model { | ||||
|             unset($config['ssl']); | ||||
|  | ||||
|             try { | ||||
|  | ||||
|                if ($username != "" && $password != "") { | ||||
|                if($config['username'] && $config['password']) { | ||||
|                   $config['auth'] = 'login'; | ||||
|                   $config['username'] = $username; | ||||
|                   $config['password'] = $password; | ||||
|                   $connection = new Zend_Mail_protocol_Smtp_Auth_Login($smtphost, $smtpport, $config); | ||||
|                } else { | ||||
|                   $connection = new Zend_Mail_protocol_Smtp($smtphost, $smtpport, $config); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user