Class TinyMailPlain

  • All Implemented Interfaces:

    
    public class TinyMailPlain
    
                        

    Using basic business types, exchanging data with external

    Since:

    2023-01-13

    Author:

    trydofor

    • Constructor Detail

      • TinyMailPlain

        TinyMailPlain()
    • Method Detail

      • getId

         Long getId()

        null when creating, target id when updating

      • setId

         void setId(Long id)

        null when creating, target id when updating

      • getApps

         String getApps()

        The app it belongs to, using spring.application.name when empty

      • setApps

         void setApps(String apps)

        The app it belongs to, using spring.application.name when empty

      • getRuns

         String getRuns()

        Required RunMode, current RuntimeMode.getRunMode when empty

      • setRuns

         void setRuns(String runs)

        Required RunMode, current RuntimeMode.getRunMode when empty

      • getFrom

         String getFrom()

        mail from, use the default config when empty

      • setFrom

         void setFrom(String from)

        mail from, use the default config when empty

      • getTo

         String getTo()

        mail to, use the default config when empty, comma separated

      • setTo

         void setTo(String to)

        mail to, use the default config when empty, comma separated

      • getCc

         String getCc()

        mail cc, use the default config when empty, comma separated

      • setCc

         void setCc(String cc)

        mail cc, use the default config when empty, comma separated

      • getBcc

         String getBcc()

        mail bcc, use the default config when empty, comma separated

      • setBcc

         void setBcc(String bcc)

        mail bcc, use the default config when empty, comma separated

      • getReply

         String getReply()

        mail reply, use the default config when empty

      • setReply

         void setReply(String reply)

        mail reply, use the default config when empty

      • getSubject

         String getSubject()

        mail subject, use the default config when empty

      • setSubject

         void setSubject(String subject)

        mail subject, use the default config when empty

      • getContent

         String getContent()

        mail content, use the default config when empty

      • setContent

         void setContent(String content)

        mail content, use the default config when empty

      • getAttachment

         Map<String, String> getAttachment()

        mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format

      • setAttachment

         void setAttachment(Map<String, String> attachment)

        mail attachment, display name and Resource of Map, where Resource supports classpath, file, url format

      • getHtml

         Boolean getHtml()

        whether it is html mail, use the default config when empty

      • setHtml

         void setHtml(Boolean html)

        whether it is html mail, use the default config when empty

      • getMark

         String getMark()

        business markers, mainly used for failed operations

      • setMark

         void setMark(String mark)

        business markers, mainly used for failed operations

      • setMaxFail

         void setMaxFail(Integer maxFail)

        Maximum number of failures, update on non-null

      • setMaxDone

         void setMaxDone(Integer maxDone)

        Maximum number of successes, update when non-null

      • setRefType

         void setRefType(Integer refType)

        Reference type, indicates key1, key2 use

      • getRefKey1

         Long getRefKey1()

        Reference key1, generally the primary key

      • setRefKey1

         void setRefKey1(Long refKey1)

        Reference key1, generally the primary key

      • setRefKey2

         void setRefKey2(String refKey2)

        Reference key2, generally composite type

      • getLastSend

         LocalDateTime getLastSend()

        The system time when the message was last sent, read-only, used only to display

      • setLastSend

         void setLastSend(LocalDateTime lastSend)

        The system time when the message was last sent, read-only, used only to display

      • getLastFail

         String getLastFail()

        The reason why the email failed to be sent last time, null is not failed, read only, only used to display

      • setLastFail

         void setLastFail(String lastFail)

        The reason why the email failed to be sent last time, null is not failed, read only, only used to display

      • getLastDone

         LocalDateTime getLastDone()

        The system time when the message was last sent successfully, read-only, used only to display

      • setLastDone

         void setLastDone(LocalDateTime lastDone)

        The system time when the message was last sent successfully, read-only, used only to display

      • getLastCost

         Integer getLastCost()

        Number of milliseconds since the last message was sent, read-only, for display only

      • setLastCost

         void setLastCost(Integer lastCost)

        Number of milliseconds since the last message was sent, read-only, for display only

      • getSumSend

         Integer getSumSend()

        Total number of emails sent, read-only, for display only

      • setSumSend

         void setSumSend(Integer sumSend)

        Total number of emails sent, read-only, for display only

      • getSumFail

         Integer getSumFail()

        Total number of failed emails, read-only, for display only

      • setSumFail

         void setSumFail(Integer sumFail)

        Total number of failed emails, read-only, for display only

      • getSumDone

         Integer getSumDone()

        Total number of successful emails, read-only, for display only

      • setSumDone

         void setSumDone(Integer sumDone)

        Total number of successful emails, read-only, for display only

      • getRetry

         Boolean getRetry()

        Sending parameters, whether to retry when sending fails

      • setRetry

         void setRetry(Boolean retry)

        Sending parameters, whether to retry when sending fails

      • getCheck

         Boolean getCheck()

        Send parameter, whether to check the sending condition, otherwise it is forced to send

      • setCheck

         void setCheck(Boolean check)

        Send parameter, whether to check the sending condition, otherwise it is forced to send