-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
44 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SubscriptionMailer < ApplicationMailer | ||
def deactivated(user) | ||
@user = user | ||
mail(to: @user.email, subject: 'Subscription Expired - Beehive') | ||
end | ||
end |
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,17 @@ | ||
Hi <%= @user&.first_name %> | ||
|
||
Your 'Pro' subscription on www.beehivegiving.org (Beehive) has now come to an end. | ||
|
||
As Beehive is a project of a charity, we really appreciate that you upgraded your account a year ago. Your contribution has helped us sustain the project and provide our grant funding suitability checking service to many more fund seekers - thank you! | ||
|
||
We know there is plenty we could do to improve our service, and as a valued customer we'd love to ask you a few brief questions about this. | ||
|
||
To say thank you for your feedback and support, we'll happily extend your 'Pro' subscription for another year (free of charge). | ||
|
||
Just reply to this email and let us know you'd be happy to answer some questions. | ||
|
||
Big thanks, | ||
The Beehive Team | ||
|
||
-- | ||
This is an automated message from www.beehivegiving.org |
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,6 @@ | ||
class SubscriptionMailerPreview < ActionMailer::Preview | ||
def deactivated | ||
user = OpenStruct.new(email: 'email@example.com', first_name: 'John') | ||
SubscriptionMailer.deactivated(user) | ||
end | ||
end |