Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
DQMP
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
data
DQMP
Commits
8b38b20e
Commit
8b38b20e
authored
Dec 23, 2019
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
ccd5210a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MailServiceImpl.java
...java/com/gmei/data/dqmp/service/impl/MailServiceImpl.java
+2
-2
MailServiceTest.java
...test/java/com/gmei/data/dqmp/service/MailServiceTest.java
+1
-1
No files found.
src/main/java/com/gmei/data/dqmp/service/impl/MailServiceImpl.java
View file @
8b38b20e
...
...
@@ -33,9 +33,9 @@ public class MailServiceImpl implements MailService{
message
.
setText
(
content
);
try
{
mailSender
.
send
(
message
);
logger
.
info
(
"
简单邮件已经
发送。"
);
logger
.
info
(
"
邮件已正常
发送。"
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"发送
简单邮件时发生异常
!"
,
e
);
logger
.
error
(
"发送
邮件异常,请核实
!"
,
e
);
}
}
...
...
src/test/java/com/gmei/data/dqmp/service/MailServiceTest.java
View file @
8b38b20e
...
...
@@ -15,6 +15,6 @@ public class MailServiceTest {
@Test
public
void
testSimpleMail
()
throws
Exception
{
MailService
.
sendSimpleMail
(
"
zhaojianwei@igengmei.com"
,
"test simple mail"
,
"
hello this is simple mail"
);
MailService
.
sendSimpleMail
(
" hello this is simple mail"
);
}
}
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