Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ValUnifer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPIPAN
ValUnifer
Commits
591046a9
Commit
591046a9
authored
1 year ago
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
email service configuration
parent
521e86dc
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.environment-dev
+7
-6
7 additions, 6 deletions
.environment-dev
users/utils.py
+3
-1
3 additions, 1 deletion
users/utils.py
with
10 additions
and
7 deletions
.environment-dev
+
7
−
6
View file @
591046a9
...
...
@@ -5,12 +5,13 @@ DATABASE_PASSWORD=shellvalier
DATABASE_PORT=5432
DATABASE_USER=shellvalier
DEBUG=true
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
EMAIL_HOST=
EMAIL_PORT=25
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=false
EMAIL_FROM=valunifier@ipipan.waw.pl
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=zimbra.ipipan.waw.pl
EMAIL_PORT=587
EMAIL_HOST_USER=valunifier
EMAIL_HOST_PASSWORD=gE7ds6hbGLGHRwm4
EMAIL_USE_TLS=true
EMAIL_USE_SSL=false
SECRET_KEY=Ixosoh1iemoh0Heloh1thee5akooboonu5veehae4aikoh2ohg
UWSGI_PROCESS_PER_CONTAINER=4
...
...
This diff is collapsed.
Click to expand it.
users/utils.py
+
3
−
1
View file @
591046a9
...
...
@@ -2,6 +2,8 @@ from django.core.mail import send_mail
from
django.utils.translation
import
gettext
as
_
from
django.template
import
loader
from
shellvalier.environment
import
get_environment
def
send_new_user_email
(
site
,
user
,
use_https
):
subject
=
_
(
'
Zaproszenie do %s
'
)
%
(
site
.
name
,
)
...
...
@@ -11,4 +13,4 @@ def send_new_user_email(site, user, use_https):
'
domain
'
:
site
.
domain
,
'
user
'
:
user
,
})
send_mail
(
subject
,
body
,
from_email
=
None
,
recipient_list
=
[
user
.
email
])
send_mail
(
subject
,
body
,
from_email
=
get_environment
(
'
EMAIL_FROM
'
,
default
=
None
)
,
recipient_list
=
[
user
.
email
])
This diff is collapsed.
Click to expand it.
Preview
0%
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