Class TinyMailConfig
-
- All Implemented Interfaces:
public class TinyMailConfig extends MailPropertieshashCode and equals with host, port, username, protocol from MailProperties, and TinyMailConfig without name
- Since:
2022-12-31
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTinyMailConfig.Loader
-
Field Summary
Fields Modifier and Type Field Description public 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 TinyMailConfig()
-
Method Summary
Modifier and Type Method Description voidsetTo(Array<String> to)voidsetCc(Array<String> cc)voidsetBcc(Array<String> bcc)booleanequals(Object o)inthashCode()StringgetDryrun()the dryrun prefix of subject. StringgetName()the name of mail config. StringgetFrom()default mail from Array<String>getTo()default mail to Array<String>getCc()default mail cc Array<String>getBcc()default mail bcc StringgetReply()default mail reply BooleangetHtml()mail content type, send html mail(text/html) if true ,otherwise plain mail(text/plain) voidsetDryrun(String dryrun)the dryrun prefix of subject. voidsetName(String name)the name of mail config. voidsetFrom(String from)default mail from voidsetReply(String reply)default mail reply voidsetHtml(Boolean html)mail content type, send html mail(text/html) if true ,otherwise plain mail(text/plain) -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
hashCode
int hashCode()
-
getName
String getName()
the name of mail config. automatically set in static config, manually set in dynamic config,
-
getHtml
Boolean getHtml()
mail content type, send html mail(text/html) if true ,otherwise plain mail(text/plain)
-
setDryrun
void setDryrun(String dryrun)
the dryrun prefix of subject. merge if null, `empty` means disable.
-
setName
void setName(String name)
the name of mail config. automatically set in static config, manually set in dynamic config,
-
-
-
-