Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
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
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
Bo-Chun Chen
rabbitmq_agents
Commits
3436edbf
Commit
3436edbf
authored
5 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Update mail.py
Added more variables Capitalize variable name Added `Whole_mail`
parent
65970853
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mail.py
+16
-5
16 additions, 5 deletions
mail.py
with
16 additions
and
5 deletions
mail.py
+
16
−
5
View file @
3436edbf
# Some variable for email
# Some variable for email
my_email
=
'
admin@localhost
'
Server
=
'
localhost
'
info_url
=
'
https://www.google.com
'
My_email
=
'
admin@localhost
'
Sender
=
'
ADMIN@LISTSERV.LOCALHOST
'
Sender_alias
=
'
Services
'
Subject
=
'
New User Account
'
Info_url
=
'
https://www.google.com
'
body
=
f
"""
Head
=
f
"""
From:
{
Sender_alias
}
<
{
Sender
}
>
To: <{{{{ to }}}}>
Subject:
{
Subject
}
"""
Body
=
f
"""
Hi {{{{ username }}}}
Hi {{{{ username }}}}
Your account has been set up with:
Your account has been set up with:
...
@@ -11,9 +20,11 @@ User ID: {{{{ username }}}}
...
@@ -11,9 +20,11 @@ User ID: {{{{ username }}}}
============================
============================
If you have any questions, please visit:
If you have any questions, please visit:
{
i
nfo_url
}
{
I
nfo_url
}
or email at
{
m
y_email
}
or email at
{
M
y_email
}
Cheers,
Cheers,
"""
"""
Whole_mail
=
Head
+
Body
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