Skip to content

Commit

Permalink
Merge pull request #59 from spinnaker/more-mail-properties
Browse files Browse the repository at this point in the history
use spring boot mail starter instead of java mail directly.
  • Loading branch information
tomaslin committed Jan 7, 2016
2 parents e3a139c + 8bcdafc commit 6f83668
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
2 changes: 1 addition & 1 deletion echo-notifications/echo-notifications.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
compile spinnaker.dependency("kork")
compile spinnaker.dependency("rxJava")
compile "javax.mail:mail:1.4.1"
compile "org.springframework:spring-context-support:${spinnaker.version('spring')}"
compile "org.springframework.boot:spring-boot-starter-mail:${spinnaker.version('springBoot')}"
compile "org.apache.velocity:velocity:1.7"
compile "org.jsoup:jsoup:1.8.2"
testCompile "com.icegreen:greenmail:1.4.0"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class EmailNotificationService implements NotificationService {
MimeMessage message = javaMailSender.createMimeMessage()
MimeMessageHelper helper = new MimeMessageHelper(message)

helper.setBcc(to)
helper.setTo(to)
helper.setFrom(from)
helper.setText(text)
helper.setSubject(subject)
Expand Down

0 comments on commit 6f83668

Please sign in to comment.