net.ifok.mail.model.MailInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mail-spring-boot-starter Show documentation
Show all versions of mail-spring-boot-starter Show documentation
simple mail spring boot starter
The newest version!
package net.ifok.mail.model;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @Description 邮件内容
* @Author xq
* @Date 9:58 上午 2021/5/22
*
**/
@Data
public class MailInfo implements Serializable {
/**
* 邮件id,未存库不用
*/
private String id;
/**
* 发件人邮箱
*/
private String from;
/**
* 收件人邮箱
*/
private String to;
/**
* 邮件主题
*/
private String subject;
/**
* 邮件内容
*/
private String text;
/**
* 邮件内容是否html默认否
*/
private Boolean isHTML;
/**
* 发送时间
*/
private Date sendDate;
/**
* 抄送,多个用英文逗号隔开
*/
private String cc;
/**
* 密送,多个逗号隔开
*/
private String bcc;
/**
* 状态;0-成功;其他失败
*/
private Integer status;
/**
* 错误信息
*/
private String error;
/**
* 附件信息
*/
private List attachments;
}