Sha256: b7f59071b84091ef66c81b4c14778fda04db6c65a2476f60a03d65340129f5dc
Contents?: true
Size: 1.11 KB
Versions: 12
Compression:
Stored size: 1.11 KB
Contents
module IshManager class ApplicationMailer < ActionMailer::Base default from: 'WasyaCo Consulting <no-reply@wasya.co>' layout 'mailer' def shared_galleries profiles, gallery return if profiles.count == 0 @gallery = gallery @domain = Rails.application.config.action_mailer.default_url_options[:host] @galleries_path = IshManager::Engine.routes.url_helpers.galleries_path @gallery_path = IshManager::Engine.routes.url_helpers.gallery_path(@gallery.slug) mail( :to => '314658@gmail.com', :bcc => profiles.map { |p| p.email }, :subject => 'You got new shared galleries on pi manager' ).deliver end def option_alert option @option = option mail( :to => option.profile.email, :subject => "IshManager Option Alert :: #{option.ticker}" ).deliver end def stock_alert stock @stock = stock mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver end def test_email mail( to: 'piousbox@gmail.com', subject: "Test email at #{Time.now}" ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems