public class SmtpMailSender extends Object implements IMailSender
Constructor and Description |
---|
SmtpMailSender() |
Modifier and Type | Method and Description |
---|---|
protected Collection<String> |
getEmailDestinationStringAsCollection(String destination)
Translates an email destination string into a collection of Strings, each
one contaning an email destination.
|
protected IMailConfig |
getMailConfig()
Returns the MailConfig with the configurations to be used when sending the e-mail.
|
void |
sendMail(SessionConfig sessionConfig,
ISingleMail mail,
ITransaction transaction)
Sends a mail.
|
public void sendMail(SessionConfig sessionConfig, ISingleMail mail, ITransaction transaction) throws PortalException
IMailSender
sendMail
in interface IMailSender
sessionConfig
- the user session informationmail
- information about the mail to be sent.transaction
- the transaction for persistence access.PortalException
- if it was not possible to send the mail.protected IMailConfig getMailConfig() throws PortalException
PortalException
- if the MailConfig could not be obtained.protected Collection<String> getEmailDestinationStringAsCollection(String destination)
destination
- the email destination string.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.