Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TeDomum
Amonit
Commits
15f4fdd1
Commit
15f4fdd1
authored
Sep 21, 2019
by
kaiyou
Browse files
Fix a typo
parent
9c83c685
Pipeline
#261
passed with stage
in 1 minute and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
amonit/check/mail.py
View file @
15f4fdd1
...
...
@@ -53,7 +53,7 @@ def send_mail(context, account, to, message):
mail
[
"Subject"
]
+=
message
mail
[
"From"
]
=
account
[
"username"
]
mail
[
"To"
]
=
to
mail
.
attach
(
text
.
MIMEText
(
"
\n
"
.
join
(
fake
.
paragraph
b
s
(
nb
=
5
)),
"text"
))
mail
.
attach
(
text
.
MIMEText
(
"
\n
"
.
join
(
fake
.
paragraphs
(
nb
=
5
)),
"text"
))
smtp
.
sendmail
(
account
[
"username"
],
to
,
mail
.
as_string
())
smtp
.
quit
()
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment