Skip to content

Instantly share code, notes, and snippets.

@andyczerwonka
Last active December 1, 2016 23:30
Show Gist options
  • Save andyczerwonka/d32119e9d9bcb77d20c2e1e9c3ca25e5 to your computer and use it in GitHub Desktop.
Save andyczerwonka/d32119e9d9bcb77d20c2e1e9c3ca25e5 to your computer and use it in GitHub Desktop.
private def send(invitation: Invitation, to: User, emailer: Emailer) = {
val url = s"${Application.configuration.baseUrl}/${invitation.id}"
val htmlBody = template.replace("{{url}}", url)
emailer.send(user.email, invitation.subject, htmlBody)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment