This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #1240 - test emails for approved requests that start today - fixed issue with emails for approved requests that start today - delete extra space from user email subject - remove doubled salutations - changed admin mailer from address - fix default emails - rework of user email method
- Loading branch information
Sydney Young
committed
Jun 22, 2015
1 parent
f1ced8d
commit f227089
Showing
15 changed files
with
101 additions
and
106 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
<p><%= simple_format(replace_variables(@app_configs.upcoming_checkin_email_body)) %></p> | ||
<%= render html: simple_format(replace_variables(@app_configs.upcoming_checkin_email_body)).html_safe %> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<p><%= simple_format(replace_variables(@app_configs.deleted_missed_reservation_email_body)) %></p> | ||
<%= render html: simple_format(replace_variables(@app_configs.deleted_missed_reservation_email_body)).html_safe %> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<p><%= simple_format(replace_variables(@app_configs.overdue_checkin_email_body)) %></p> | ||
<%= render html: simple_format(replace_variables(@app_configs.overdue_checkin_email_body)).html_safe %> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<p><%= simple_format(replace_variables(@app_configs.upcoming_checkout_email_body)) %></p> | ||
<%= render html: simple_format(replace_variables(@app_configs.upcoming_checkout_email_body)).html_safe %> |
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
Dear @user@,\n\n\ | ||
Because you have missed a scheduled equipment checkout, your reservation (number Reservation_id@) has been cancelled. If you believe this is in error, please contact an administrator.\n\n\ | ||
@equipment_list@\n\n\ | ||
Thank you,\n\ | ||
'@department_name@' | ||
|
||
Because you have missed a scheduled equipment checkout, your reservation has been cancelled. If you believe this is in error, please contact an administrator. |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Dear @user@,\n\n\ | ||
It looks like you have overdue equipment!\n\n\ | ||
Please return the following equipment to us as soon as possible. Until then you will be charged a daily late fee of @late_fee@.\n\n\ | ||
@equipment_list@\n\n\ | ||
Failure to return equipment will result in the levying of replacement fees, and potential revocation of borrowing privileges.\n\n\ | ||
Your reservation number is Reservation_id@.\n\n\ | ||
Thank you,\n\ | ||
'@department_name@' | ||
It looks like you have overdue equipment! | ||
|
||
Please return the following equipment to us as soon as possible. Until then you will be charged a daily late fee of @late_fee@. | ||
|
||
@equipment_list@ | ||
|
||
Failure to return equipment will result in the levying of replacement fees, and potential revocation of borrowing privileges. | ||
|
||
Your reservation number is @reservation_id@. | ||
|
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
Hey there, you have equipment due! Please return the following items before 4pm on @return_date@.\n\n\ | ||
@equipment_list@\n\n\ | ||
If you fail to return your equipment on time you will be subject to a late fee of @late_fee@ per day. If you have lost the item you may additionally have to pay a replacement fee of @replacement_fee@.\n\ | ||
Log in to Reservations to see if any of your items are eligible for renewal. If you have further questions feel free to contact an employee of @department_name@.\n\n\ | ||
Your reservation number is @reservation_id@.\n\n\ | ||
Hey there, you have equipment due! Please return the following items before 4pm on @return_date@. | ||
|
||
@equipment_list@ | ||
|
||
If you fail to return your equipment on time you will be subject to a late fee of @late_fee@ per day. If you have lost the item you may additionally have to pay a replacement fee of @replacement_fee@. | ||
Log in to Reservations to see if any of your items are eligible for renewal. If you have further questions feel free to contact an employee of @department_name@. | ||
|
||
Your reservation number is @reservation_id@. | ||
|
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Hey there, you have equipment reserved today! Please checkout the following items today:\n\n\ | ||
@equipment_list@\n\n\ | ||
If you fail to return your equipment on time you will be subject to a late fee of @late_fee@ per day. If you have lost the item you may additionally have to pay a replacement fee of @replacement_fee@.\n\ | ||
Log in to Reservations to see if any of your items are eligible for renewal. If you have further questions feel free to contact an employee of @department_name@.\n\n\ | ||
Hey there, you have equipment reserved today! Please checkout the following items today: | ||
|
||
@equipment_list@ | ||
|
||
If you fail to return your equipment on time you will be subject to a late fee of @late_fee@ per day. If you have lost the item you may additionally have to pay a replacement fee of @replacement_fee@. | ||
Log in to Reservations to see if any of your items are eligible for renewal. If you have further questions feel free to contact an employee of @department_name@. | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
expect(@mail.to.size).to eq(1) | ||
expect(@mail.to.first).to eq(@app_config.admin_email) | ||
end | ||
it 'is from no-reply@reservations.app' do | ||
expect(@mail.from.size).to eq(1) | ||
expect(@mail.from.first).to eq('[email protected]') | ||
it "is from no-reply@#{ ActionMailer::Base.default_url_options[:host] }" do | ||
expect(@mail.from).to eq("no-reply@#{ | ||
ActionMailer::Base.default_url_options[:host] }") | ||
end | ||
it 'should actually send the email' do | ||
expect(ActionMailer::Base.deliveries.count).to eq(1) | ||
|
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