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
-
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()voidadopt(MailProperties that)use all properties from that voidadopt(TinyMailConfig that)use all properties from that voidmerge(MailProperties that)if this.property is invalid, then use that.property. voidmerge(TinyMailConfig that)if this.property is invalid, then use that.property. 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) 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()
-
adopt
void adopt(MailProperties that)
use all properties from that
-
adopt
void adopt(TinyMailConfig that)
use all properties from that
-
merge
void merge(MailProperties that)
if this.property is invalid, then use that.property. except for 'properties' which merge value only if key matches.
-
merge
void merge(TinyMailConfig that)
if this.property is invalid, then use that.property.
-
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)
-
setName
void setName(String name)
the name of mail config. automatically set in static config, manually set in dynamic config,
-
-
-
-