thundr-contrib-sendgrid
A thundr module for sending emails using SendGrid using the thundr Mailer abstraction.
You can read more about thundr here
Include the thundr-contrib-sendgrid dependency using maven or your favourite dependency management tool.
<dependency>
<groupId>com.atomicleopard</groupId>
<artifactId>thundr-contrib-sendgrid</artifactId>
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
Include your sendgrid api key in application.properties
sendgridApiKey=YOUR_KEY_HERE
Add a dependency on the SendGridModule module in your ApplicationModule
file:
@Override
public void requires(DependencyRegistry dependencyRegistry) {
super.requires(dependencyRegistry);
...
dependencyRegistry.addDependency(SendGridModule.class);
}
The SendGridMailer will then be used as the implementation for Mailer across your application.
thundr-contrib-sendgrid - Copyright (C) 2015 Atomic Leopard