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