Package org.nekosoft.pdffer.mail
Class PdfferMailerConfiguration
java.lang.Object
org.nekosoft.pdffer.mail.PdfferMailerConfiguration
@Configuration
@ConditionalOnClass(name="org.springframework.mail.javamail.JavaMailSender")
@ConditionalOnProperty(name="pdffer.mailer.beans.enable",
havingValue="true",
matchIfMissing=false)
public class PdfferMailerConfiguration
extends Object
A conditional Spring configuration class for the email functionality of PDFfer.
This configuration is only imported if the mail dependencies are present in the
Spring Boot application. The configuration must also be enabled with the pdffer.mailer.beans.enable
property, otherwise it will not be loaded even if the mail dependencies are present.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.mail.javamail.JavaMailSender
mailSender(PdfferMailerProps javaMailprops)
TheJavaMailSender
bean that provides details on how to send email from PDFfer.
-
Constructor Details
-
PdfferMailerConfiguration
public PdfferMailerConfiguration()
-
-
Method Details
-
mailSender
@Bean public org.springframework.mail.javamail.JavaMailSender mailSender(PdfferMailerProps javaMailprops)TheJavaMailSender
bean that provides details on how to send email from PDFfer.- Parameters:
javaMailprops
- the configuration properties relating to the email functionality- Returns:
- the
JavaMailSender
bean
-