public interface MailService extends MessageGateway<Email>
MailService
can be used to send emails.
The mail service is already configured with a mail host,
mail port and from address.
These values can be overwritten in the supplied email object.
This is a convenience to access an OSGI Service for a
MessageGateway
of type Email
MessageGateway
Modifier and Type | Method and Description |
---|---|
void |
sendEmail(Email email)
Deprecated.
since 5.4 use
MessageGateway.send(Object) instead} |
handles, send
void sendEmail(Email email) throws EmailException
MessageGateway.send(Object)
instead}email
- The email to sent.EmailException
- in case sending fails"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"