Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
rc
rabbitmq_agents
Commits
27e6da88
Commit
27e6da88
authored
2 years ago
by
Ravi Tripathi
Browse files
Options
Downloads
Patches
Plain Diff
Use a new variable to send the notification email to users for their account
parent
151de31c
No related branches found
Branches containing commit
No related tags found
2 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!143
Use a new variable to send the notification email to users for their …
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
prod_rmq_agents/notify_user.py
+1
-1
1 addition, 1 deletion
prod_rmq_agents/notify_user.py
rabbit_config.py.example
+1
-0
1 addition, 0 deletions
rabbit_config.py.example
with
2 additions
and
1 deletion
prod_rmq_agents/notify_user.py
+
1
−
1
View file @
27e6da88
...
@@ -70,7 +70,7 @@ def notify_user(ch, method, properties, body):
...
@@ -70,7 +70,7 @@ def notify_user(ch, method, properties, body):
else
:
else
:
errmsg
=
"
Sending email to user
"
errmsg
=
"
Sending email to user
"
smtp
=
smtplib
.
SMTP
(
rcfg
.
Mail_server
)
smtp
=
smtplib
.
SMTP
(
rcfg
.
Mail_server
)
smtp
.
sendmail
(
rcfg
.
Sender
,
receivers
,
message
)
smtp
.
sendmail
(
rcfg
.
Sender
_notification
,
receivers
,
message
)
logger
.
debug
(
f
"
Email sent to:
{
user_email
}
"
)
logger
.
debug
(
f
"
Email sent to:
{
user_email
}
"
)
...
...
This diff is collapsed.
Click to expand it.
rabbit_config.py.example
+
1
−
0
View file @
27e6da88
...
@@ -25,6 +25,7 @@ db_path = ".agent_db"
...
@@ -25,6 +25,7 @@ db_path = ".agent_db"
Mail_server = 'localhost'
Mail_server = 'localhost'
Admin_email = 'root@localhost'
Admin_email = 'root@localhost'
Sender = 'ROOT@LOCALHOST'
Sender = 'ROOT@LOCALHOST'
Sender_notification = 'NOTIFY@LOCALHOST'
Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST'
Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST'
Sender_alias = 'Services'
Sender_alias = 'Services'
Subject = 'New User Account'
Subject = 'New User Account'
...
...
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