Created
October 1, 2015 21:20
-
-
Save gkazior/8df7957be85702644394 to your computer and use it in GitHub Desktop.
Send email in scala play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sendEmail(emailTo: String, emailFrom: String, subject: String, body: String) = { | |
import com.typesafe.plugin._ | |
val mail = use[MailerPlugin].email | |
mail.setRecipient(emailTo) | |
mail.setFrom(emailFrom) | |
mail.setSubject(subject) | |
mail.send(body) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment