Class TinyMail
-
- All Implemented Interfaces:
public class TinyMail- Since:
2023-01-12
trydofor
-
-
Constructor Summary
Constructors Constructor Description TinyMail()
-
Method Summary
Modifier and Type Method Description IntegergetRefType()Reference Type to Tag key1, key2 usage voidsetRefType(Integer refType)Reference Type to Tag key1, key2 usage LonggetRefKey1()Reference key1, Generally the PK voidsetRefKey1(Long refKey1)Reference key1, Generally the PK StringgetRefKey2()Reference key2, Generally the composite type voidsetRefKey2(String refKey2)Reference key2, Generally the composite type voidsetTo(Array<String> to)voidsetCc(Array<String> cc)voidsetBcc(Array<String> bcc)voidsetContentText(String content)voidsetContentHtml(String content)voidsetContentHtml(String content, Boolean html)StringgetConf()Config name, use default if empty StringgetFrom()Mail from, use default if empty Array<String>getTo()Mail to, use default if null Array<String>getCc()Mail cc, use default if null Array<String>getBcc()Mail bcc, use default if null StringgetReply()Mail reply, use default if empty BooleangetHtml()Whether to send html mail (text/html), otherwise text mail(text/plain). StringgetSubject()Mail subject, use default if empty StringgetContent()Mail content, use default if empty Map<String, Resource>getAttachment()Mail attachment, use default if null StringgetMark()Business keyword ot mark, space seperated, use default if null LocalDateTimegetDate()Schedule to send mail (system time zone) IntegergetMaxFail()Max count of fail, defaults to system configuration IntegergetMaxDone()Max count of done (successfully send), defaults to system configuration voidsetConf(String conf)Config name, use default if empty voidsetFrom(String from)Mail from, use default if empty voidsetReply(String reply)Mail reply, use default if empty voidsetHtml(Boolean html)Whether to send html mail (text/html), otherwise text mail(text/plain). voidsetSubject(String subject)Mail subject, use default if empty voidsetContent(String content)Mail content, use default if empty voidsetAttachment(Map<String, Resource> attachment)Mail attachment, use default if null voidsetMark(String mark)Business keyword ot mark, space seperated, use default if null voidsetDate(LocalDateTime date)Schedule to send mail (system time zone) voidsetMaxFail(Integer maxFail)Max count of fail, defaults to system configuration voidsetMaxDone(Integer maxDone)Max count of done (successfully send), defaults to system configuration booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getRefType
Integer getRefType()
Reference Type to Tag key1, key2 usage
-
setRefType
void setRefType(Integer refType)
Reference Type to Tag key1, key2 usage
-
getRefKey1
Long getRefKey1()
Reference key1, Generally the PK
-
setRefKey1
void setRefKey1(Long refKey1)
Reference key1, Generally the PK
-
getRefKey2
String getRefKey2()
Reference key2, Generally the composite type
-
setRefKey2
void setRefKey2(String refKey2)
Reference key2, Generally the composite type
-
setContentText
void setContentText(String content)
-
setContentHtml
void setContentHtml(String content)
-
setContentHtml
void setContentHtml(String content, Boolean html)
-
getHtml
Boolean getHtml()
Whether to send html mail (text/html), otherwise text mail(text/plain). use default if null
-
getSubject
String getSubject()
Mail subject, use default if empty
-
getContent
String getContent()
Mail content, use default if empty
-
getAttachment
Map<String, Resource> getAttachment()
Mail attachment, use default if null
-
getDate
LocalDateTime getDate()
Schedule to send mail (system time zone)
-
getMaxFail
Integer getMaxFail()
Max count of fail, defaults to system configuration
-
getMaxDone
Integer getMaxDone()
Max count of done (successfully send), defaults to system configuration
-
setHtml
void setHtml(Boolean html)
Whether to send html mail (text/html), otherwise text mail(text/plain). use default if null
-
setSubject
void setSubject(String subject)
Mail subject, use default if empty
-
setContent
void setContent(String content)
Mail content, use default if empty
-
setAttachment
void setAttachment(Map<String, Resource> attachment)
Mail attachment, use default if null
-
setDate
void setDate(LocalDateTime date)
Schedule to send mail (system time zone)
-
setMaxFail
void setMaxFail(Integer maxFail)
Max count of fail, defaults to system configuration
-
setMaxDone
void setMaxDone(Integer maxDone)
Max count of done (successfully send), defaults to system configuration
-
hashCode
int hashCode()
-
-
-
-