Sha256: c581e54af00a1d8b66c63f2b33d05d35190bb2b92d405fd809770006b65d7113
Contents?: true
Size: 741 Bytes
Versions: 2
Compression:
Stored size: 741 Bytes
Contents
class UserMailer < ActionMailer::Base default :from => MailEngine::Base.current_config["default_from"] sendgrid_header do category MailEngine::Base.current_config["sendgrid"]["category_name"] 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 # should use subject in the db mail template. mail :to => to, :subject => "subject in mailer" end def notify_to_user(user) @firstname = user.firstname @lastname = user.lastname # html must below text mail :to => user.email end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail_engine-0.1.12 | test/dummy/app/mailers/user_mailer.rb |
mail_engine-0.1.11 | test/dummy/app/mailers/user_mailer.rb |