update controller and env
This commit is contained in:
parent
14f6845dc0
commit
9f10170159
@ -8,7 +8,6 @@ class VideolistingsController < ApplicationController
|
||||
VideolistingMailer.videolisting_complete(@videolisting).deliver
|
||||
@videolisting.published = true
|
||||
@videolisting.save
|
||||
|
||||
@message = "Campaign Published Successfully."
|
||||
else
|
||||
@message = "Error: Campaign Not Published."
|
||||
|
@ -71,7 +71,14 @@ Vidpush::Application.configure do
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = SMTP_SETTINGS
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: 'smtp.gmail.com',
|
||||
port: 587,
|
||||
domain: 'propelmarketing.com',
|
||||
user_name: 'donotreply@propelmarketing.com',
|
||||
password: ENV['SMTP_PASSWORD'],
|
||||
authentication: 'plain',
|
||||
enable_starttls_auto: true }
|
||||
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
|
Loading…
Reference in New Issue
Block a user