This commit is contained in:
parent
ed17613c63
commit
c9f98a152e
|
|
@ -1,4 +1,4 @@
|
||||||
class ApplicationMailer < ActionMailer::Base
|
class ApplicationMailer < ActionMailer::Base
|
||||||
default from: 'from@example.com'
|
default from: 'pomoc@kalendarzdotacji.pl'
|
||||||
layout 'mailer'
|
layout 'mailer'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Mailer for dotations
|
# Mailer for dotations
|
||||||
class NewDotationMailer < ApplicationMailer
|
class NewDotationMailer < ApplicationMailer
|
||||||
default from: 'kalendarzdotacji@gmail.com'
|
default from: 'pomoc@kalendarzdotacji.pl'
|
||||||
|
|
||||||
def welcome_email
|
def welcome_email
|
||||||
@email_filter = FilterForEmail.where(id: params[:email_filter]).first
|
@email_filter = FilterForEmail.where(id: params[:email_filter]).first
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Mailer for dotations
|
# Mailer for dotations
|
||||||
class NotifyEmailMailer < ApplicationMailer
|
class NotifyEmailMailer < ApplicationMailer
|
||||||
default from: 'kalendarzdotacji@gmail.com'
|
default from: 'pomoc@kalendarzdotacji.pl'
|
||||||
|
|
||||||
def contact_page
|
def contact_page
|
||||||
@email_message = EmailMessage.where(id: params[:email]).first
|
@email_message = EmailMessage.where(id: params[:email]).first
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,11 @@ Rails.application.configure do
|
||||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3434 }
|
config.action_mailer.default_url_options = { host: 'localhost', port: 3434 }
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: 'smtp.gmail.com',
|
address: 'smtp-exacta.super-host.pl',
|
||||||
port: 587,
|
port: 587,
|
||||||
domain: 'kalendarzdotacji.pl',
|
domain: 'kalendarzdotacji.pl',
|
||||||
user_name: 'kalendarzdotacji@gmail.com',
|
user_name: 'pomoc.kalendarzdotacji.exacta',
|
||||||
password: '498FAvFd4YBapu5',
|
password: 'SM15H1HztzirB',
|
||||||
authentication: 'plain',
|
authentication: 'plain',
|
||||||
enable_starttls_auto: true
|
enable_starttls_auto: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,11 +70,11 @@ Rails.application.configure do
|
||||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3434 }
|
config.action_mailer.default_url_options = { host: 'localhost', port: 3434 }
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: 'smtp.gmail.com',
|
address: 'smtp-exacta.super-host.pl',
|
||||||
port: 587,
|
port: 587,
|
||||||
domain: 'kalendarzdotacji.pl',
|
domain: 'kalendarzdotacji.pl',
|
||||||
user_name: 'kalendarzdotacji@gmail.com',
|
user_name: 'pomoc.kalendarzdotacji.exacta',
|
||||||
password: '498FAvFd4YBapu5',
|
password: 'SM15H1HztzirB',
|
||||||
authentication: 'plain',
|
authentication: 'plain',
|
||||||
enable_starttls_auto: true
|
enable_starttls_auto: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue