forked from DMPRoadmap/roadmap
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated complete_feedback mailer to use do-not-reply as sender addres…
…s. Updated default margins for plan exports
- Loading branch information
Showing
3 changed files
with
88 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
module Dmptool | ||
|
||
module Mailers | ||
|
||
module UserMailer | ||
|
||
# AWS SES does not allow the sender to be be from a different domain so | ||
# we remove the `from:` that was being used to pretendd it is coming from | ||
# the Org's contact_email | ||
def feedback_complete(recipient, plan, requestor) | ||
@requestor = requestor | ||
@user = recipient | ||
@plan = plan | ||
@phase = plan.phases.first | ||
if recipient.active? | ||
FastGettext.with_locale FastGettext.default_locale do | ||
mail(to: recipient.email, | ||
subject: _("%{application_name}: Expert feedback has been provided for %{plan_title}") % {application_name: Rails.configuration.branding[:application][:name], plan_title: @plan.title}) | ||
end | ||
end | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |