Class TinyMailSenderProp

    • Constructor Detail

      • TinyMailSenderProp

        TinyMailSenderProp()
    • Method Detail

      • getBizId

         String getBizId()

        biz-id Header to locate mail by business, default mail id.

      • setBizId

         void setBizId(String bizId)

        biz-id Header to locate mail by business, default mail id.

      • getBizMark

         String getBizMark()

        biz-mark Header to locate data by business, eg. orderNumber.

      • setBizMark

         void setBizMark(String bizMark)

        biz-mark Header to locate data by business, eg. orderNumber.

      • getErrSend

         Duration getErrSend()

        how much time to wait if MailSendException, default 5 minutes.

      • setErrSend

         void setErrSend(Duration errSend)

        how much time to wait if MailSendException, default 5 minutes.

      • getErrAuth

         Duration getErrAuth()

        how much time to wait if MailAuthenticationException, default 1 hour.

      • setErrAuth

         void setErrAuth(Duration errAuth)

        how much time to wait if MailAuthenticationException, default 1 hour.

      • getErrHost

         Map<BigDecimal, String> getErrHost()

        how many seconds to wait for the host if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.

      • setErrHost

         void setErrHost(Map<BigDecimal, String> errHost)

        how many seconds to wait for the host if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.

      • getErrMail

         Map<BigDecimal, String> getErrMail()

        how many seconds to wait to resend this email if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.

      • setErrMail

         void setErrMail(Map<BigDecimal, String> errMail)

        how many seconds to wait to resend this email if it contains the following exception message. seconds is the key, the fraction is only used to make key unique, negative number means stop resending.

      • setPerIdle

         void setPerIdle(Map<String, Duration> perIdle)

        interval of each login of the same mailhost, avoid limit frequency, 0 is ignored.

      • getMaxIdle

         Map<String, Duration> getMaxIdle()

        max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored.

      • setMaxIdle

         void setMaxIdle(Map<String, Duration> maxIdle)

        max wait time for the same mailhost, if less then wait, otherwise throw MailWaitException, 0 is ignored.

      • setForceTo

         void setForceTo(Array<String> forceTo)

        force to replace the real "to", string arrays, comma separated.

      • setForceCc

         void setForceCc(Array<String> forceCc)

        force to replace the real "cc", string arrays, comma separated.

      • setForceBcc

         void setForceBcc(Array<String> forceBcc)

        force to replace the real "bcc", string arrays, comma separated.

      • isDryrun

         boolean isDryrun()

        whether to dry run, log only without actually send

      • setDryrun

         void setDryrun(boolean dryrun)

        whether to dry run, log only without actually send