Interface MailService

  • All Superinterfaces:
    MessageGateway<Email>

    public interface MailService
    extends MessageGateway<Email>
    The 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
    See Also:
    MessageGateway
    • Method Detail

      • sendEmail

        void sendEmail​(Email email)
                throws EmailException
        Deprecated.
        since 5.4 use MessageGateway.send(Object) instead}
        Send an email. 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.
        Parameters:
        email - The email to sent.
        Throws:
        EmailException - in case sending fails