Make FROM mail addresses more friendly

This commit is contained in:
Petko Bordjukov 2024-04-18 21:48:34 +03:00
parent 1834beb13d
commit 78c73d273e
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ class VolunteerMailer < ActionMailer::Base
I18n.locale = @volunteer.language
mail(to: @volunteer.email,
reply_to: @volunteer.conference.email,
from: "cfp@openfest.org",
from: "OpenFest <cfp@openfest.org>",
subject: I18n.t("volunteer_mailer.success_notification.subject",
conference_name: @volunteer.conference.title))
end
@ -23,7 +23,7 @@ class VolunteerMailer < ActionMailer::Base
I18n.locale = @volunteer.language
mail(to: @volunteer.email,
reply_to: @volunteer.conference.email,
from: "cfp@openfest.org",
from: "OpenFest <cfp@openfest.org>",
subject: I18n.t("volunteer_mailer.email_confirmation.subject",
conference_name: @volunteer.conference.title))
end

View File

@ -87,7 +87,7 @@ Rails.application.configure do
# config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_options = {from: "cfp@openfest.org"}
config.action_mailer.default_options = {from: "OpenFest <cfp@openfest.org>"}
config.action_mailer.default_url_options = {host: "cfp.openfest.org"}
config.action_mailer.smtp_settings = {
address: "mail.openfest.org"

View File

@ -12,7 +12,7 @@ Devise.setup do |config|
# 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
# with default "from" parameter.
config.mailer_sender = "cfp@openfest.org"
config.mailer_sender = "OpenFest <cfp@openfest.org>"
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'