Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
886c3097
Commit
886c3097
authored
1 year ago
by
Jan-Hendrik Willms
Committed by
Elmar Ludwig
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fixes #3658
Closes #3658 Merge request
studip/studip!2616
parent
828fc4b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config_defaults.inc.php
+1
-1
1 addition, 1 deletion
config/config_defaults.inc.php
lib/bootstrap.php
+2
-2
2 additions, 2 deletions
lib/bootstrap.php
with
3 additions
and
3 deletions
config/config_defaults.inc.php
+
1
−
1
View file @
886c3097
...
@@ -199,7 +199,7 @@ $MAIL_TRANSPORT = "smtp";
...
@@ -199,7 +199,7 @@ $MAIL_TRANSPORT = "smtp";
----------------------------------------------------------------
----------------------------------------------------------------
leave blank or try 127.0.0.1 if localhost is also the mailserver
leave blank or try 127.0.0.1 if localhost is also the mailserver
ignore if you don't use smtp as transport*/
ignore if you don't use smtp as transport*/
$MAIL_HOST_NAME
=
""
;
//which mailserver should we use? (must allow mail-relaying from $MAIL_LOCALHOST, defaults to
SERVER_NAME
)
$MAIL_HOST_NAME
=
""
;
//which mailserver should we use? (must allow mail-relaying from $MAIL_LOCALHOST, defaults to
localhost
)
$MAIL_SMTP_OPTIONS
=
[
$MAIL_SMTP_OPTIONS
=
[
'port'
=>
25
,
'port'
=>
25
,
'user'
=>
''
,
'user'
=>
''
,
...
...
This diff is collapsed.
Click to expand it.
lib/bootstrap.php
+
2
−
2
View file @
886c3097
...
@@ -269,8 +269,8 @@ $mail_transporter_class = $mail_transporter_name . '_class';
...
@@ -269,8 +269,8 @@ $mail_transporter_class = $mail_transporter_name . '_class';
$mail_transporter
=
new
$mail_transporter_class
;
$mail_transporter
=
new
$mail_transporter_class
;
if
(
$mail_transporter_name
==
'smtp_message'
)
{
if
(
$mail_transporter_name
==
'smtp_message'
)
{
include
'vendor/email_message/smtp.php'
;
include
'vendor/email_message/smtp.php'
;
$mail_transporter
->
localhost
=
(
$GLOBALS
[
'MAIL_LOCALHOST'
]
==
""
)
?
$_SERVER
[
"
SERVER_NAME
"
]
:
$GLOBALS
[
'MAIL_LOCALHOST
'
];
$mail_transporter
->
localhost
=
$GLOBALS
[
'MAIL_LOCALHOST'
]
?
:
$_SERVER
[
'
SERVER_NAME'
];
$mail_transporter
->
smtp_host
=
(
$GLOBALS
[
'MAIL_HOST_NAME'
]
==
""
)
?
$_SERVER
[
"SERVER_NAME"
]
:
$GLOBALS
[
'MAIL_HOST_NAME'
]
;
$mail_transporter
->
smtp_host
=
$GLOBALS
[
'MAIL_HOST_NAME'
]
?:
'localhost'
;
if
(
is_array
(
$GLOBALS
[
'MAIL_SMTP_OPTIONS'
]))
{
if
(
is_array
(
$GLOBALS
[
'MAIL_SMTP_OPTIONS'
]))
{
foreach
(
$GLOBALS
[
'MAIL_SMTP_OPTIONS'
]
as
$key
=>
$value
)
{
foreach
(
$GLOBALS
[
'MAIL_SMTP_OPTIONS'
]
as
$key
=>
$value
)
{
$mail_transporter
->
{
"smtp_
$key
"
}
=
$value
;
$mail_transporter
->
{
"smtp_
$key
"
}
=
$value
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment