update controller and env

This commit is contained in:
Tyrel Souza 2014-05-05 14:38:04 -04:00
parent 14f6845dc0
commit 9f10170159
2 changed files with 8 additions and 2 deletions

View File

@ -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."

View File

@ -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