diff options
author | Mickaƫl <1652931+mickael067@users.noreply.github.com> | 2022-04-17 08:52:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 08:52:47 +0300 |
commit | 6fa6f89b02d69ca41dfbeba9fa0db1e8a3f5a9d0 (patch) | |
tree | 0b009c8c209df1941904fe71eae15adcff7b6f96 | |
parent | 8ad92d5f98efc658343bd8e82f9578595d22d43b (diff) |
Update rcube_smtp.php (#8508)
Correction on the issue explain here : https://github.com/roundcube/roundcubemail/issues/8507
-rw-r--r-- | program/lib/Roundcube/rcube_smtp.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_smtp.php b/program/lib/Roundcube/rcube_smtp.php index 171b80e1a..8578441a8 100644 --- a/program/lib/Roundcube/rcube_smtp.php +++ b/program/lib/Roundcube/rcube_smtp.php @@ -179,10 +179,16 @@ class rcube_smtp if ($CONFIG['smtp_user'] == '%u') { $smtp_user = (string) $rcube->get_user_name(); + } else { + $smtp_user = $CONFIG['smtp_user']; } + if ($CONFIG['smtp_pass'] == '%p') { $smtp_pass = (string) $rcube->get_user_password(); + } else { + $smtp_pass = $CONFIG['smtp_pass']; } + $smtp_auth_type = $CONFIG['smtp_auth_type'] ?: null; $smtp_authz = null; |