Class EmailSender
- java.lang.Object
-
- com.xebialabs.xlrelease.notifications.email.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)voidsendEmailSync(Email email)voidsendHTML(com.xebialabs.xlrelease.notifications.configuration.SmtpServer smtpServer, Email email)
-
-
-
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.EmailExceptioncom.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
-
-