Interface ISendMailConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionGet the directory where mails that could not be sent are archived.Get the directory where commands can be passed to the send-mail service.Get the address of the default sender.Get the name of the default sender.long
Get an optional fixed recipient address.long
Get the approximate maximum size of a message that can be sent.int
Get the maximum number of messages that can be sent before a new SMTP session is being established.int
Get the password used for SMTP authentication.Get the pickup mail directory, i.e.Get the protocol that is used to send mail, i.e.Get the directory where mails are queued for delivery.long
Get the send-mail properties.Get the directory where mails that have been sent are archived ifarchiveSentMail
istrue
.long
An internally used sleep interval.Get the SMTP host that is used for sending mail.int
Get the SMTP port used for sending mail.Get the SMTP provider properties.long
Get the temporary mail directory, i.e.long
getUser()
Get the user name used for SMTP authentication.boolean
This property determines if sent mail should be archived in thesentMailDirectory
.boolean
This property determines if sending success should be logged.boolean
This property determines if sending success should be logged with the message subject.boolean
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.boolean
This property determines if the SMTP server needs authentication.
-
Method Details
-
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 ifarchiveSentMail
istrue
.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:
true
if sent mails should be archived, orfalse
otherwise.
-
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:
true
if the SMTP server needs authentication, orfalse
otherwise.
-
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
Get the send-mail properties.- Returns:
- The send-mail properties.
-
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:
true
if sending success should be logged, orfalse
otherwise.
-
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:
true
if sending success should be logged with the message subject, orfalse
otherwise.
-
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:
true
if a workflow event should be sent, orfalse
otherwise.
-