基本信息
源码名称:Java发送邮件项目源码
源码大小:1.54M
文件格式:.zip
开发语言:Java
更新时间:2020-05-26
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 5 元×
微信扫码支付:5 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
package com.longdatech.decryptcode.controller; import com.longdatech.decryptcode.mailutils.MailUtil; import com.longdatech.decryptcode.utils.ServerResponse; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** * @description 发送邮件控制器 * @author: liyinlong * @date 2019-06-18 11:11 */ @Slf4j @Api(description = "4.邮件控制器") @RestController @RequestMapping("/email") public class Ldkj_EmailController { /** * @description * @author: liyinlong * @date 2019-06-18 11:24 * @param receiverEmail 邮件接收者邮箱 * @param message 文件内容 * @return * @throws Exception */ @ApiOperation("4.1发送简单文本信息") @PostMapping("/sendSimpleMessage") public ServerResponse sendSimpleMessage(@RequestParam String receiverEmail,@RequestParam String message) throws Exception{ log.info("4.1发送简单文本信息"); MailUtil.sendSimpleMessage(receiverEmail,message); return ServerResponse.createBySuccess(); } }