Another fix for emails
This commit is contained in:
@@ -167,14 +167,6 @@ class UserMailer < ActionMailer::Base
|
||||
mail to: 'goodgodwin@hotmail.com', subject: @subject
|
||||
end
|
||||
|
||||
def self.send_mail(*args)
|
||||
if Rails.env.preview? || Rails.env.production?
|
||||
delay(queue: Rails.env.to_s).send(*args)
|
||||
else
|
||||
send(*args).deliver_now
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def set_host(*args)
|
||||
if Rails.env.production?
|
||||
|
||||
Reference in New Issue
Block a user