Commit 525a080e authored by Quxl's avatar Quxl

xx

parent a8753463
...@@ -25,4 +25,18 @@ public class EmailServiceImpl implements EmailService { ...@@ -25,4 +25,18 @@ public class EmailServiceImpl implements EmailService {
}.start(); }.start();
} }
public static void main(String[] args) {
String host = "smtp.siff.com";
Integer port = 25;
boolean is_auth = true;
String from = "filmpassword@siff.com";
String username = "filmpassword";
String password = "siffstvf2018";
String subject = "Test";
String content = "Test";
String emailAddress = "747539993@qq.com";
MailUtil.sendBySmtp(host, port, is_auth, username, password, from, subject, content, null, emailAddress);
}
} }
...@@ -17,5 +17,5 @@ com.egolm.film.email.smtp.host=smtp.siff.com ...@@ -17,5 +17,5 @@ com.egolm.film.email.smtp.host=smtp.siff.com
com.egolm.film.email.smtp.port=25 com.egolm.film.email.smtp.port=25
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 com.egolm.film.email.smtp.username=filmpassword@siff.com
com.egolm.film.email.smtp.password=siffstvf2018 com.egolm.film.email.smtp.password=siffstvf2018
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