Commit 5537bac1 authored by Quxl's avatar Quxl

x

parent 7e909101
...@@ -52,7 +52,7 @@ public class EmailServiceImpl implements EmailService { ...@@ -52,7 +52,7 @@ public class EmailServiceImpl implements EmailService {
new Thread() { new Thread() {
public void run() { public void run() {
try { try {
MailUtil.sendBySmtp(host, port, is_auth, username, password, from, subject, content, null, StringUtil.isNotBlank(testEmail) ? testEmail : email); MailUtil.sendBySmtps(host, port, is_auth, username, password, from, subject, content, null, StringUtil.isNotBlank(testEmail) ? testEmail : email);
record.setSend_state(1); record.setSend_state(1);
} catch (Exception e) { } catch (Exception e) {
record.setSend_state(2); record.setSend_state(2);
......
...@@ -12,7 +12,7 @@ spring.http.encoding.charset=utf-8 ...@@ -12,7 +12,7 @@ spring.http.encoding.charset=utf-8
com.egolm.film.email.test= com.egolm.film.email.test=
com.egolm.film.email.smtp.host=smtp.siff.com com.egolm.film.email.smtp.host=smtp.siff.com
com.egolm.film.email.smtp.port=25 com.egolm.film.email.smtp.port=465
com.egolm.film.email.smtp.is_auth=true com.egolm.film.email.smtp.is_auth=true
com.egolm.film.email.smtp.from=filmpassword@siff.com com.egolm.film.email.smtp.from=filmpassword@siff.com
com.egolm.film.email.smtp.username=filmpassword@siff.com com.egolm.film.email.smtp.username=filmpassword@siff.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment