Sha256: 5155a7c81efb53b8bff5783fee92a75de7354e991db5ff584a637121f924b28b
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
class UserMailer < ActionMailer::Base default :from => "info@itjob.fm" sendgrid_header do category "itjob" filters { opentrack "enable" => 1 clicktrack "enable" => 1 subscriptiontrack "enable" => 0 template "enable" => 0 footer "enable" => 0 } end def notify(to = "hlxwell@gmail.com") @username = "Michael He" # html must below text mail :to => to do |f| f.html f.text end end def notify_to_user(user) @firstname = user.firstname @lastname = user.lastname # html must below text mail :to => user.email do |f| f.html f.text end end end
Version data entries
5 entries across 5 versions & 1 rubygems