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)voidsetMailLazy(@NotNull() TinyMailLazy bean, @Nullable() Object para)voidsetContentText(String content)voidsetContentHtml(String content)voidsetContentHtml(String content, Boolean html)voidputAttachment(@NotNull() String name, @NotNull() Resource resource, boolean optional)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 StringgetSubject()Mail subject, use default if empty StringgetContent()Mail content, use default if empty Map<String, Resource>getAttachment()Mail attachment and its name (can prefix `optional:`), use default if null BooleangetHtml()Whether to send html mail (text/html), otherwise text mail(text/plain). StringgetMark()Business keyword ot mark, space seperated, use default if null LocalDateTimegetDate()Schedule to send mail (system time zone) StringgetLazyBean()lazy bean to edit mail if mail_text is null StringgetLazyPara()lazy para of lazy bean 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 voidsetSubject(String subject)Mail subject, use default if empty voidsetContent(String content)Mail content, use default if empty voidsetAttachment(@Nullable() Map<String, Resource> attachment)Mail attachment and its name (can prefix `optional:`), use default if null voidsetHtml(Boolean html)Whether to send html mail (text/html), otherwise text mail(text/plain). voidsetMark(String mark)Business keyword ot mark, space seperated, use default if null voidsetDate(LocalDateTime date)Schedule to send mail (system time zone) voidsetLazyBean(String lazyBean)lazy bean to edit mail if mail_text is null voidsetLazyPara(String lazyPara)lazy para of lazy bean 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
-
setMailLazy
void setMailLazy(@NotNull() TinyMailLazy bean, @Nullable() Object para)
-
setContentText
void setContentText(String content)
-
setContentHtml
void setContentHtml(String content)
-
setContentHtml
void setContentHtml(String content, Boolean html)
-
putAttachment
void putAttachment(@NotNull() String name, @NotNull() Resource resource, boolean optional)
-
getSubject
String getSubject()
Mail subject, use default if empty
-
getContent
String getContent()
Mail content, use default if empty
-
getAttachment
@Nullable() Map<String, Resource> getAttachment()
Mail attachment and its name (can prefix `optional:`), use default if null
-
getHtml
Boolean getHtml()
Whether to send html mail (text/html), otherwise text mail(text/plain). use default if null
-
getDate
LocalDateTime getDate()
Schedule to send mail (system time zone)
-
getLazyBean
String getLazyBean()
lazy bean to edit mail if mail_text is null
-
getLazyPara
String getLazyPara()
lazy para of lazy bean
-
getMaxFail
Integer getMaxFail()
Max count of fail, defaults to system configuration
-
getMaxDone
Integer getMaxDone()
Max count of done (successfully send), defaults to system configuration
-
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(@Nullable() Map<String, Resource> attachment)
Mail attachment and its name (can prefix `optional:`), use default if null
-
setHtml
void setHtml(Boolean html)
Whether to send html mail (text/html), otherwise text mail(text/plain). use default if null
-
setDate
void setDate(LocalDateTime date)
Schedule to send mail (system time zone)
-
setLazyBean
void setLazyBean(String lazyBean)
lazy bean to edit mail if mail_text is null
-
setLazyPara
void setLazyPara(String lazyPara)
lazy para of lazy bean
-
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()
-
-
-
-