Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add email to Spring Boot gradle build

Tags:

spring-boot

Spring boot has a number of starter dependencies. The default set does not include support for mail (org.springframework.mail is missing in Boot). How do I configure my build.gradle to include the spring framework mail support?

like image 783
scancmdr Avatar asked Jul 18 '14 23:07

scancmdr


People also ask

How do I automatically send email per day in spring boot?

You need to use Scheduler in your spring boot application to schedule your email task. The Spring Framework provides abstractions for asynchronous execution and scheduling of tasks with the TaskExecutor and TaskScheduler interfaces, respectively.


2 Answers

For spring boot you want to use this:

compile("org.springframework.boot:spring-boot-starter-mail")

See more about spring starters here

like image 125
Samuel Parsonage Avatar answered Oct 20 '22 03:10

Samuel Parsonage


Try spring-context-support, ie

compile 'org.springframework:spring-context-support'

You might find this a helpful tool for that kind of query: http://www.findjar.com.

like image 42
Dave Syer Avatar answered Oct 20 '22 01:10

Dave Syer