@RestController @RequestMapping(value="/mail/send") public class MailSendApiRestController extends Object
| 构造器和说明 |
|---|
MailSendApiRestController() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseResponse |
batchSendMail(BaseRequest<List<MailSendReq>> mailSendReqs)
批量发送邮件
具体内容和信息由调用方拼装
|
BaseResponse |
sendHtmlMail(String recipientTo,
String subject,
String content)
简单的HTML邮件发送
|
BaseResponse |
sendMail(BaseRequest<MailSendReq> mailSendReq)
发送邮件
具体内容和信息由调用方拼装
1.静态资源的邮件
2.带附件的邮件
|
BaseResponse |
sendSimpleMail(String recipientTo,
String subject,
String content)
简单的纯文本邮件发送
|
@PostMapping(value="/simple") public BaseResponse sendSimpleMail(@RequestParam(name="recipientTo",required=true) String recipientTo, String subject, String content)
recipientTo - 收件人subject - 主题content - 内容@PostMapping(value="/html") public BaseResponse sendHtmlMail(@RequestParam(name="recipientTo",required=true) String recipientTo, String subject, String content)
recipientTo - 收件人subject - 主题content - 内容@PostMapping(value="") public BaseResponse sendMail(BaseRequest<MailSendReq> mailSendReq)
mailSendReq - 邮件请求对象@PostMapping(value="/batch") public BaseResponse batchSendMail(BaseRequest<List<MailSendReq>> mailSendReqs)
mailSendReqs - Copyright © 2024. All rights reserved.