From 06d216421e0f4fbfefc2ed0716a1e3d526afaa52 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 27 Sep 2015 21:27:31 -0700 Subject: [PATCH] Another fix for emails --- app/mailers/user_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 848dcee..213329b 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -67,9 +67,9 @@ class UserMailer < ActionMailer::Base def broadcast(host, subject, content, user, conference) @host = host @content = content - #@banner = (@host || 'http://localhost/') + (conference ? (conference.poster.preview.url || '') : image_url('logo.png')) + @banner = nil#(@host || 'http://localhost/') + (conference ? (conference.poster.preview.url || '') : image_url('logo.png')) if user && user.email - email = Rails.env == 'production' ? user.email : 'goodgodwin@hotmail.com' + email = user.email mail to: email, subject: "[#{conference ? conference.title : 'Bike!Bike!'}] #{subject}" end end