Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
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
backend
crawler
Commits
e58c9a3f
Commit
e58c9a3f
authored
Mar 24, 2021
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改邮箱
parent
f6761ad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
func_send_email_with_file.py
maintenance/func_send_email_with_file.py
+3
-3
No files found.
maintenance/func_send_email_with_file.py
View file @
e58c9a3f
...
...
@@ -28,7 +28,7 @@ from email.mime.text import MIMEText
def
send_file_email
(
file_path
,
data_str
,
email_group
=
[],
email_msg_body_str
=
None
,
title_str
=
None
,
cc_group
=
[
"
litao
@igengmei.com"
],
sender
=
None
,
file
=
None
):
cc_group
=
[
"
zhangmeng
@igengmei.com"
],
sender
=
None
,
file
=
None
):
directory
=
file_path
# Create the enclosing (outer) message
if
email_msg_body_str
==
None
:
...
...
@@ -44,7 +44,7 @@ def send_file_email(file_path, data_str, email_group=[],
outer
[
'To'
]
=
','
.
join
(
email_group
)
outer
[
'Cc'
]
=
','
.
join
(
cc_group
)
if
not
sender
:
outer
[
'From'
]
=
'
litao
@igengmei.com'
outer
[
'From'
]
=
'
zhangmeng
@igengmei.com'
else
:
outer
[
'From'
]
=
sender
mail_service
=
'smtp.exmail.qq.com'
...
...
@@ -124,7 +124,7 @@ def send_file_email(file_path, data_str, email_group=[],
# Now send or store the message
# composed = outer.as_string()
server
=
smtplib
.
SMTP_SSL
(
mail_service
,
465
)
server
.
login
(
"
litao@igengmei.com"
,
"Lemo1995
"
)
server
.
login
(
"
zhangmeng@igengmei.com"
,
"250858Aa
"
)
server
.
send_message
(
outer
)
server
.
quit
()
...
...
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