diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 286b223..4d52f34 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,4 +1,4 @@ class ApplicationMailer < ActionMailer::Base - default from: 'from@example.com' + default from: 'pomoc@kalendarzdotacji.pl' layout 'mailer' end diff --git a/app/mailers/new_dotation_mailer.rb b/app/mailers/new_dotation_mailer.rb index b30106a..c5ac940 100644 --- a/app/mailers/new_dotation_mailer.rb +++ b/app/mailers/new_dotation_mailer.rb @@ -2,7 +2,7 @@ # Mailer for dotations class NewDotationMailer < ApplicationMailer - default from: 'kalendarzdotacji@gmail.com' + default from: 'pomoc@kalendarzdotacji.pl' def welcome_email @email_filter = FilterForEmail.where(id: params[:email_filter]).first diff --git a/app/mailers/notify_email_mailer.rb b/app/mailers/notify_email_mailer.rb index f79f350..ff645c4 100644 --- a/app/mailers/notify_email_mailer.rb +++ b/app/mailers/notify_email_mailer.rb @@ -2,7 +2,7 @@ # Mailer for dotations class NotifyEmailMailer < ApplicationMailer - default from: 'kalendarzdotacji@gmail.com' + default from: 'pomoc@kalendarzdotacji.pl' def contact_page @email_message = EmailMessage.where(id: params[:email]).first diff --git a/config/environments/development.rb b/config/environments/development.rb index 0269dc7..e626704 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -37,11 +37,11 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: 'localhost', port: 3434 } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { - address: 'smtp.gmail.com', + address: 'smtp-exacta.super-host.pl', port: 587, domain: 'kalendarzdotacji.pl', - user_name: 'kalendarzdotacji@gmail.com', - password: '498FAvFd4YBapu5', + user_name: 'pomoc.kalendarzdotacji.exacta', + password: 'SM15H1HztzirB', authentication: 'plain', enable_starttls_auto: true } diff --git a/config/environments/production.rb b/config/environments/production.rb index 091aa28..346e16a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -70,11 +70,11 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: 'localhost', port: 3434 } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { - address: 'smtp.gmail.com', + address: 'smtp-exacta.super-host.pl', port: 587, domain: 'kalendarzdotacji.pl', - user_name: 'kalendarzdotacji@gmail.com', - password: '498FAvFd4YBapu5', + user_name: 'pomoc.kalendarzdotacji.exacta', + password: 'SM15H1HztzirB', authentication: 'plain', enable_starttls_auto: true }