mirror of
https://github.com/ityouknow/spring-boot-examples.git
synced 2026-09-03 07:27:38 +08:00
@@ -5,12 +5,12 @@ package com.neo.service;
|
||||
*/
|
||||
public interface MailService {
|
||||
|
||||
public void sendSimpleMail(String to, String subject, String content);
|
||||
void sendSimpleMail(String to, String subject, String content);
|
||||
|
||||
public void sendHtmlMail(String to, String subject, String content);
|
||||
void sendHtmlMail(String to, String subject, String content);
|
||||
|
||||
public void sendAttachmentsMail(String to, String subject, String content, String filePath);
|
||||
void sendAttachmentsMail(String to, String subject, String content, String filePath);
|
||||
|
||||
public void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);
|
||||
void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);
|
||||
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ public class MailServiceImpl implements MailService{
|
||||
* @param content
|
||||
* @param filePath
|
||||
*/
|
||||
@Override
|
||||
public void sendAttachmentsMail(String to, String subject, String content, String filePath){
|
||||
MimeMessage message = mailSender.createMimeMessage();
|
||||
|
||||
@@ -116,6 +117,7 @@ public class MailServiceImpl implements MailService{
|
||||
* @param rscPath
|
||||
* @param rscId
|
||||
*/
|
||||
@Override
|
||||
public void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId){
|
||||
MimeMessage message = mailSender.createMimeMessage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user