update 优化 移除不合理的方法 携带附件的邮件建议直接集成插件发送

This commit is contained in:
疯狂的狮子Li
2023-10-19 14:19:52 +08:00
parent ef2294a9c4
commit b0dac358f7
2 changed files with 3 additions and 32 deletions

View File

@@ -2,9 +2,6 @@ package org.dromara.resource.api;
import org.dromara.common.core.exception.ServiceException;
import java.io.File;
import java.util.List;
/**
* 邮件服务
*
@@ -21,14 +18,4 @@ public interface RemoteMailService {
*/
void send(String to, String subject, String text) throws ServiceException;
/**
* 发送邮件带附件
*
* @param to 接收人
* @param subject 标题
* @param text 内容
* @param fileList 附件
*/
void sendWithAttachment(String to, String subject, String text, List<File> fileList) throws ServiceException;
}