Class TinyMailMessage
-
- All Implemented Interfaces:
public class TinyMailMessage extends TinyMailConfig
- Since:
2023-01-05
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static IfSetter<TinyMailMessage, TinyMailMessage>MessageSetterpublic final static IfSetter<TinyMailConfig, MailProperties>PropSetterpublic final static IfSetter<TinyMailConfig, TinyMailConfig>ConfSetterpublic Stringhostpublic Integerportpublic Stringusernamepublic Stringpasswordpublic Stringprotocolpublic CharsetdefaultEncodingpublic final Map<String, String>propertiespublic StringjndiName
-
Constructor Summary
Constructors Constructor Description TinyMailMessage()
-
Method Summary
Modifier and Type Method Description Map<String, Resource>getAttachment()StringtoMainString()booleanasHtml()static booleanasHtml(String str, boolean elze)LonggetBizId()Business id of the mail StringgetBizMark()Business mark of the mail StringgetSubject()Mail subject StringgetContent()Mail content voidsetBizId(Long bizId)Business id of the mail voidsetBizMark(String bizMark)Business mark of the mail voidsetSubject(String subject)Mail subject voidsetContent(String content)Mail content voidsetAttachment(Map<String, Resource> attachment)Mail attachments and its names (can prefix `optional:`) StringtoString()booleanequals(@Nullable() Object o)inthashCode()-
Methods inherited from class org.springframework.boot.autoconfigure.mail.MailProperties
getDefaultEncoding, getHost, getJndiName, getPassword, getPort, getProperties, getProtocol, getUsername, setDefaultEncoding, setHost, setJndiName, setPassword, setPort, setProtocol, setUsername -
Methods inherited from class pro.fessional.wings.tiny.mail.sender.TinyMailConfig
getBcc, getCc, getDryrun, getFrom, getHtml, getName, getReply, getTo, setBcc, setCc, setDryrun, setFrom, setHtml, setName, setReply, setTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAttachment
@NotNull() Map<String, Resource> getAttachment()
-
toMainString
String toMainString()
-
asHtml
boolean asHtml()
-
getBizMark
String getBizMark()
Business mark of the mail
-
getSubject
String getSubject()
Mail subject
-
getContent
String getContent()
Mail content
-
setBizMark
void setBizMark(String bizMark)
Business mark of the mail
-
setSubject
void setSubject(String subject)
Mail subject
-
setContent
void setContent(String content)
Mail content
-
setAttachment
void setAttachment(Map<String, Resource> attachment)
Mail attachments and its names (can prefix `optional:`)
-
hashCode
int hashCode()
-
-
-
-