1、导入依赖
1 | <dependency> |
2、application.properties的设置
1 | server.port=8080 |
3、测试,可以发送简单的邮件和带附件的邮件
简单邮件
1 |
|
复杂邮件,支持HTML及附件
1 |
|
- 本文作者: LHS
- 本文链接: https:/LiuHuAshen.github.io/2019/12/27/Springboot的邮件服务/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
欢迎参观我的博客
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true