Class EmailSender


  • @Component
    public class EmailSender
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      EmailSender​(com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.xlrelease.notifications.email.EmailFactory emailFactory, com.xebialabs.xlrelease.notifications.email.RefreshTokenOAuth2Helper refreshTokenOAuth2Helper, com.xebialabs.xlrelease.config.XlrConfig xlrConfig)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> scheduleEmail​(Email email)  
      void sendEmailSync​(Email email)  
      void sendHTML​(com.xebialabs.xlrelease.notifications.configuration.SmtpServer smtpServer, Email email)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmailSender

        @Autowired
        public EmailSender​(com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository,
                           com.xebialabs.xlrelease.notifications.email.EmailFactory emailFactory,
                           com.xebialabs.xlrelease.notifications.email.RefreshTokenOAuth2Helper refreshTokenOAuth2Helper,
                           com.xebialabs.xlrelease.config.XlrConfig xlrConfig)
    • Method Detail

      • scheduleEmail

        public java.util.concurrent.CompletableFuture<java.lang.Void> scheduleEmail​(Email email)
      • sendEmailSync

        public void sendEmailSync​(Email email)
                           throws org.apache.commons.mail.EmailException,
                                  com.xebialabs.deployit.exception.NotFoundException
        Throws:
        org.apache.commons.mail.EmailException
        com.xebialabs.deployit.exception.NotFoundException
      • sendHTML

        public void sendHTML​(com.xebialabs.xlrelease.notifications.configuration.SmtpServer smtpServer,
                             Email email)
                      throws org.apache.commons.mail.EmailException
        Throws:
        org.apache.commons.mail.EmailException