类 MailPush

所有已实现的接口:
ApplicationBeanInitialized, Pushable<MailSenderInfo>

public abstract class MailPush extends AbstractPushObject<MailSenderInfo>
标准的邮件推送实现。同步调用
作者:
时克英
  • 构造器详细资料

    • MailPush

      public MailPush()
  • 方法详细资料

    • doPushContent

      protected PushResult doPushContent(Notification notification, List<MailSenderInfo> data) throws PushException
      指定者:
      doPushContent 在类中 AbstractPushObject<MailSenderInfo>
      抛出:
      PushException
    • getNotificationChannel

      public NotificationChannel getNotificationChannel()
    • translateToTarget

      public List<MailSenderInfo> translateToTarget(Notification notification)
    • startup

      public void startup()
    • getUserMail

      protected abstract String getUserMail(String userId)
      根据用户id,获取email地址
      参数:
      userId -
      返回:
    • setMailServerHost

      public void setMailServerHost(String mailServerHost)
      设置邮件服务地址
      参数:
      mailServerHost -
    • setMailServerPort

      public void setMailServerPort(String mailServerPort)
      设置邮件服务端口,默认:25
      参数:
      mailServerPort -
    • setFromAddress

      public void setFromAddress(String fromAddress)
      设置发送邮件地址
      参数:
      fromAddress -
    • setFromPassword

      public void setFromPassword(String fromPassword)
      设置发送邮件密码(现在是密钥,不是登录邮箱密码)
      参数:
      fromPassword -