change mail address to send to
This commit is contained in:
parent
f39c54088e
commit
17f65a9c5a
|
@ -1,4 +1,4 @@
|
||||||
class ApplicationMailer < ActionMailer::Base
|
class ApplicationMailer < ActionMailer::Base
|
||||||
default from: "info@webdev.camp" , bcc: "info@webdev.camp"
|
default from: "admission@webdev.camp" , bcc: "admission@webdev.camp"
|
||||||
layout 'mailer'
|
layout 'mailer'
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,7 @@ Devise.setup do |config|
|
||||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||||
# note that it will be overwritten if you use your own mailer class
|
# note that it will be overwritten if you use your own mailer class
|
||||||
# with default "from" parameter.
|
# with default "from" parameter.
|
||||||
config.mailer_sender = 'info@' + Rails.application.secrets.domain_name
|
config.mailer_sender = 'admission@' + Rails.application.secrets.domain_name
|
||||||
|
|
||||||
# Configure the class responsible to send e-mails.
|
# Configure the class responsible to send e-mails.
|
||||||
# config.mailer = 'Devise::Mailer'
|
# config.mailer = 'Devise::Mailer'
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
|
|
||||||
development:
|
development:
|
||||||
admin_name: First User
|
admin_name: First User
|
||||||
admin_email: info@webdev.camp
|
admin_email: admission@webdev.camp
|
||||||
admin_pass: password
|
admin_pass: password
|
||||||
domain_name: webdev.camp
|
domain_name: webdev.camp
|
||||||
secret_key_base: 6fbc7972b587359c086a6c6738dca91a5cd53f635bdfba31c7b23721a27e1d89bf8c490dfc3ebe773bcdb98d2add0946ea924321bad66499b893d88fc827b883
|
secret_key_base: 6fbc7972b587359c086a6c6738dca91a5cd53f635bdfba31c7b23721a27e1d89bf8c490dfc3ebe773bcdb98d2add0946ea924321bad66499b893d88fc827b883
|
||||||
|
|
||||||
test:
|
test:
|
||||||
admin_name: First User
|
admin_name: First User
|
||||||
admin_email: info@webdev.camp
|
admin_email: admission@webdev.camp
|
||||||
admin_pass: password
|
admin_pass: password
|
||||||
domain_name: webdev.camp
|
domain_name: webdev.camp
|
||||||
secret_key_base: a0a18747d0172bfadf4187e6c01be490f452539aeaa4d74bada88ef851d7a2dfabcde91552d3689e9eb71caf9062e5d8b28fbeb55c6f429d92d462655c25d60c
|
secret_key_base: a0a18747d0172bfadf4187e6c01be490f452539aeaa4d74bada88ef851d7a2dfabcde91552d3689e9eb71caf9062e5d8b28fbeb55c6f429d92d462655c25d60c
|
||||||
|
|
|
@ -7,7 +7,7 @@ RSpec.describe ApplyMailer, type: :mailer do
|
||||||
it "renders the headers" do
|
it "renders the headers" do
|
||||||
expect(mail.subject).to match("submitted")
|
expect(mail.subject).to match("submitted")
|
||||||
expect(mail.to).to eq(["test@example.com"])
|
expect(mail.to).to eq(["test@example.com"])
|
||||||
expect(mail.from).to eq(["info@webdev.camp"])
|
expect(mail.from).to eq(["admission@webdev.camp"])
|
||||||
end
|
end
|
||||||
|
|
||||||
it "renders the body" do
|
it "renders the body" do
|
||||||
|
@ -21,8 +21,8 @@ RSpec.describe ApplyMailer, type: :mailer do
|
||||||
it "renders the headers" do
|
it "renders the headers" do
|
||||||
expect(mail.subject).to match("cancelled")
|
expect(mail.subject).to match("cancelled")
|
||||||
expect(mail.to).to eq(["test@example.com"])
|
expect(mail.to).to eq(["test@example.com"])
|
||||||
expect(mail.bcc).to eq(["info@webdev.camp"])
|
expect(mail.bcc).to eq(["admission@webdev.camp"])
|
||||||
expect(mail.from).to eq(["info@webdev.camp"])
|
expect(mail.from).to eq(["admission@webdev.camp"])
|
||||||
end
|
end
|
||||||
|
|
||||||
it "renders the body" do
|
it "renders the body" do
|
||||||
|
|
Loading…
Reference in New Issue