Class PdfferMailerProps
java.lang.Object
org.nekosoft.pdffer.props.PdfferMailerProps
@ConfigurationProperties(prefix="pdffer.mailer")
@Validated
@ConditionalOnProperty(name="pdffer.mailer.enabled",
havingValue="true",
matchIfMissing=false)
public class PdfferMailerProps
extends Object
A Property POJO that reflects the configuration of the mailer bean.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfferMailerProps(boolean enabled, EmailAddressInfo sendFrom, EmailAddressInfo replyTo, SmtpServerInfo smtp) Instantiates a new Pdffer mailer props. -
Method Summary
Modifier and TypeMethodDescription@Valid EmailAddressInfoGets the default email address that will be used as the reply-to header for the emails sent by PDFfer.@Valid EmailAddressInfoGets the default email address that will be used as the sender for the emails sent by PDFfer.@NotNull(message="You must provide SMTP server information in order to use the PDFfer Mailer") @Valid SmtpServerInfogetSmtp()Gets the settings of the SMTP server that will be used to send email messages from PDFfer.booleanIndicates whether the mailer beans should be present.
-
Constructor Details
-
PdfferMailerProps
@ConstructorBinding public PdfferMailerProps(boolean enabled, EmailAddressInfo sendFrom, EmailAddressInfo replyTo, SmtpServerInfo smtp) Instantiates a new Pdffer mailer props.- Parameters:
sendFrom- the default email address that will be used as the sender for the emails sent by PDFferreplyTo- the default email address that will be used as the reply-to header for the emails sent by PDFfersmtp- the settings of the SMTP server that will be used to send email messages from PDFfer
-
-
Method Details
-
isEnabled
public boolean isEnabled()Indicates whether the mailer beans should be present.- Returns:
trueif the mailer beans should be present
-
getSendFrom
Gets the default email address that will be used as the sender for the emails sent by PDFfer.- Returns:
- the default email address that will be used as the sender
-
getReplyTo
Gets the default email address that will be used as the reply-to header for the emails sent by PDFfer.- Returns:
- the default email address that will be used as the reply-to header
-
getSmtp
@NotNull(message="You must provide SMTP server information in order to use the PDFfer Mailer") @Valid public @NotNull(message="You must provide SMTP server information in order to use the PDFfer Mailer") @Valid SmtpServerInfo getSmtp()Gets the settings of the SMTP server that will be used to send email messages from PDFfer.- Returns:
- the settings of the SMTP server
-