Interface ISendMailConfiguration
-
public interface ISendMailConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBadMailDirectory()Get the directory where mails that could not be sent are archived.StringgetCommandDirectory()Get the directory where commands can be passed to the send-mail service.StringgetDefaultSenderAddress()Get the address of the default sender.StringgetDefaultSenderName()Get the name of the default sender.longgetFirstRetryInterval()StringgetFixedRecipientAddress()Get an optional fixed recipient address.longgetLimitMaxMailFileSize()Get the approximate maximum size of a message that can be sent.intgetLimitMaxSentMessagesPerSession()Get the maximum number of messages that can be sent before a new SMTP session is being established.intgetMaxRetriesCount()StringgetPassword()Get the password used for SMTP authentication.StringgetPickupDirectory()Get the pickup mail directory, i.e.StringgetProtocol()Get the protocol that is used to send mail, i.e.StringgetQueueDirectory()Get the directory where mails are queued for delivery.longgetSecondRetryInterval()Map<String,String>getSendMailProperties()Get the send-mail properties.StringgetSentMailDirectory()Get the directory where mails that have been sent are archived ifarchiveSentMailistrue.longgetSleepInterval()An internally used sleep interval.StringgetSmtpHost()Get the SMTP host that is used for sending mail.intgetSmtpPort()Get the SMTP port used for sending mail.Map<String,String>getSmtpProviderProperties()Get the SMTP provider properties.longgetSubsequentRetryInterval()StringgetTemporaryDirectory()Get the temporary mail directory, i.e.longgetThirdRetryInterval()StringgetUser()Get the user name used for SMTP authentication.booleanisArchiveSentMail()This property determines if sent mail should be archived in thesentMailDirectory.booleanisLogSuccess()This property determines if sending success should be logged.booleanisLogSuccessSubject()This property determines if sending success should be logged with the message subject.booleanisSendBadMailWorkflowEvent()This property determines a workflow event should be sent if a mail could not be sent and has been moved to the archive for unsent mail.booleanisUsesAuthentication()This property determines if the SMTP server needs authentication.
-
-
-
Method Detail
-
getDefaultSenderAddress
String getDefaultSenderAddress()
Get the address of the default sender.- Returns:
- The address of the default sender.
-
getDefaultSenderName
String getDefaultSenderName()
Get the name of the default sender.- Returns:
- The name of the default sender.
-
getSleepInterval
long getSleepInterval()
An internally used sleep interval.- Returns:
- The internally used sleep interval.
-
getTemporaryDirectory
String getTemporaryDirectory()
Get the temporary mail directory, i.e. the directory the mails files are being created.See
de.uplanet.lucy.sendmail.pickupDirectory.- Returns:
- The temporary mail directory.
-
getPickupDirectory
String getPickupDirectory()
Get the pickup mail directory, i.e. the directory where mails are passed over to the send-mail service.See
de.uplanet.lucy.sendmail.temporaryDirectory.- Returns:
- The pickup directory.
-
getQueueDirectory
String getQueueDirectory()
Get the directory where mails are queued for delivery.See
de.uplanet.lucy.sendmail.queueDirectory.- Returns:
- The queue directory.
-
getBadMailDirectory
String getBadMailDirectory()
Get the directory where mails that could not be sent are archived.See
de.uplanet.lucy.sendmail.badMailDirectory.- Returns:
- The archive directory for mail that could not be sent.
-
getSentMailDirectory
String getSentMailDirectory()
Get the directory where mails that have been sent are archived ifarchiveSentMailistrue.See
de.uplanet.lucy.sendmail.sentMailDirectory.- Returns:
- The archive directory for sent mail.
-
getCommandDirectory
String getCommandDirectory()
Get the directory where commands can be passed to the send-mail service.See
de.uplanet.lucy.sendmail.commandDirectory.- Returns:
- The command directory.
-
isArchiveSentMail
boolean isArchiveSentMail()
This property determines if sent mail should be archived in thesentMailDirectory.See
de.uplanet.lucy.sendmail.archiveSentMail.- Returns:
trueif sent mails should be archived, orfalseotherwise.
-
getProtocol
String getProtocol()
Get the protocol that is used to send mail, i.e. eithersmtp, orsmtps.- Returns:
- The protocol used to send mail.
-
isUsesAuthentication
boolean isUsesAuthentication()
This property determines if the SMTP server needs authentication.- Returns:
trueif the SMTP server needs authentication, orfalseotherwise.
-
getUser
String getUser()
Get the user name used for SMTP authentication.- Returns:
- The user name used for SMTP authentication.
-
getPassword
String getPassword()
Get the password used for SMTP authentication.- Returns:
- The password used for SMTP authentication.
-
getSendMailProperties
Map<String,String> getSendMailProperties()
Get the send-mail properties.- Returns:
- The send-mail properties.
-
getSmtpProviderProperties
Map<String,String> getSmtpProviderProperties()
Get the SMTP provider properties.The property names start with
mail.smtp.if SMTP is used, andmail.smtps.if SMTPS is used.- Returns:
- The SMTP provider properties.
-
getSmtpHost
String getSmtpHost()
Get the SMTP host that is used for sending mail.- Returns:
- The SMTP host.
-
getSmtpPort
int getSmtpPort()
Get the SMTP port used for sending mail.- Returns:
- The SMTP port.
-
getLimitMaxSentMessagesPerSession
int getLimitMaxSentMessagesPerSession()
Get the maximum number of messages that can be sent before a new SMTP session is being established.See
de.uplanet.lucy.sendmail.limit.maxMailsPerSession.- Returns:
- The limit.
-
getLimitMaxMailFileSize
long getLimitMaxMailFileSize()
Get the approximate maximum size of a message that can be sent.See
de.uplanet.lucy.sendmail.limit.maxMailFileSize.- Returns:
- The approximate maximum size of a message.
-
getFixedRecipientAddress
String getFixedRecipientAddress()
Get an optional fixed recipient address.If this recipient address is specified, all e-mails will be sent to this recipient regardless of the addresses specified in the To, Cc, and Bcc header fields.
See
de.uplanet.lucy.sendmail.fixedRecipientAddress.- Returns:
- The fixed recipient address, or
null.
-
getMaxRetriesCount
int getMaxRetriesCount()
-
getFirstRetryInterval
long getFirstRetryInterval()
-
getSecondRetryInterval
long getSecondRetryInterval()
-
getThirdRetryInterval
long getThirdRetryInterval()
-
getSubsequentRetryInterval
long getSubsequentRetryInterval()
-
isLogSuccess
boolean isLogSuccess()
This property determines if sending success should be logged.See
de.uplanet.lucy.sendmail.logging.logSuccess.- Returns:
trueif sending success should be logged, orfalseotherwise.
-
isLogSuccessSubject
boolean isLogSuccessSubject()
This property determines if sending success should be logged with the message subject.See
de.uplanet.lucy.sendmail.logging.logSuccess.subject.- Returns:
trueif sending success should be logged with the message subject, orfalseotherwise.
-
isSendBadMailWorkflowEvent
boolean isSendBadMailWorkflowEvent()
This property determines a workflow event should be sent if a mail could not be sent and has been moved to the archive for unsent mail.See
de.uplanet.lucy.sendmail.workflow.sendBadMailEvent.- Returns:
trueif a workflow event should be sent, orfalseotherwise.
-
-