Browse Source

spring-boot-demo-email 完成

pull/1/head
Yangkai.Shen 6 years ago
parent
commit
c0fe4bef9b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spring-boot-demo-email/src/test/java/com/xkcoding/email/service/MailServiceTest.java

+ 1
- 1
spring-boot-demo-email/src/test/java/com/xkcoding/email/service/MailServiceTest.java View File

@@ -46,7 +46,7 @@ public class MailServiceTest extends SpringBootDemoEmailApplicationTests {
public void sendHtmlMail() throws MessagingException { public void sendHtmlMail() throws MessagingException {
Context context = new Context(); Context context = new Context();
context.setVariable("project", "Spring Boot Demo"); context.setVariable("project", "Spring Boot Demo");
context.setVariable("author", "yangkai.shen");
context.setVariable("author", "Yangkai.Shen");
context.setVariable("url", "https://github.com/xkcoding/spring-boot-demo"); context.setVariable("url", "https://github.com/xkcoding/spring-boot-demo");


String emailTemplate = templateEngine.process("welcome", context); String emailTemplate = templateEngine.process("welcome", context);


Loading…
Cancel
Save