Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickaƫl <1652931+mickael067@users.noreply.github.com>2022-04-17 08:52:47 +0300
committerGitHub <noreply@github.com>2022-04-17 08:52:47 +0300
commit6fa6f89b02d69ca41dfbeba9fa0db1e8a3f5a9d0 (patch)
tree0b009c8c209df1941904fe71eae15adcff7b6f96
parent8ad92d5f98efc658343bd8e82f9578595d22d43b (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.php6
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;