Skip to content

Email Integration

Integration for sending text and HTML mails with attachments.

Modules

The modules follow the default naming convention.

Usage

Add the following dependency for using the email integration.

xml
<dependencies>
    <dependency>
        <groupId>de.muenchen.oss.refarch</groupId>
        <artifactId>refarch-email-integration-starter</artifactId>
        <version>...</version>
    </dependency>
</dependencies>

After that the MailOutPort can be used for sending mails (e.g. via autowiring, as port is available as bean).

Configuration

refarch-email-integration-starter

PropertyDescriptionExample
spring.mail.hostHost of smtp server used for sending mails.mail.example.com
spring.mail.portHost of smtp server used for sending mails.1025
spring.mail.usernameUsername of smtp server.
spring.mail.passwordPassword of smtp server.
refarch.mail.from-addressDefault from address used when sending mails.test@example.com
refarch.mail.default-reply-to-addressDefault reply to address used when sending mails.no_reply@example.com