Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
32308a49
Commit
32308a49
authored
May 23, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增抄送人
parent
d050c668
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Tool.py
controller/Tool.py
+1
-1
No files found.
controller/Tool.py
View file @
32308a49
...
...
@@ -32,7 +32,7 @@ def sendport():
yag
=
yagmail
.
SMTP
(
user
=
user
,
password
=
password
,
host
=
'smtp.exmail.qq.com'
,
port
=
465
)
print
(
data
[
"to"
])
print
(
data
[
"subject"
])
yag
.
send
(
data
[
"to"
],
data
.
get
(
"subject"
),
data
.
get
(
"contents"
))
yag
.
send
(
to
=
data
[
"to"
],
cc
=
data
[
"cc"
],
subject
=
data
.
get
(
"subject"
),
contents
=
data
.
get
(
"contents"
))
return
jsonify
({
"code"
:
200
,
"message"
:
f
"{data.get('subject')}邮件发送成功"
}),
200
@
tool
.
route
(
'/testport/getproject'
,
methods
=
[
"GET"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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