Sha256: 6b077c18d4d6fc3ea745bf93588e8eaeda01e4306c7e518c887518da9739a75f
Contents?: true
Size: 954 Bytes
Versions: 107
Compression:
Stored size: 954 Bytes
Contents
module IshManager class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' def welcome @var = :value mail( :to => 'piousbox@gmail.com', :subject => 'Abba, welcome!' ).deliver end def stock_alert stock @stock = stock mail( :to => stock.profile.email, :subject => 'IshManager Stock Alert' ).deliver end 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.galleryname) mail( :to => '314658@gmail.com', :bcc => profiles.map { |p| p.email }, :subject => 'You got new shared galleries on pi manager' ).deliver end end end
Version data entries
107 entries across 107 versions & 1 rubygems