Sha256: c64e7ff00e6924eb5671d3cf77a93a76e242651b34a490eccd05c3019010a80d
Contents?: true
Size: 745 Bytes
Versions: 3
Compression:
Stored size: 745 Bytes
Contents
class UserMailer < ActionMailer::Base default :from => MailEngine::Base.current_config["default_from"] sendgrid_header do category MailEngine::Base.current_config["sendgrid"]["sendgrid_category"] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mail_engine-0.1.15 | test/dummy/app/mailers/user_mailer.rb |
mail_engine-0.1.14 | test/dummy/app/mailers/user_mailer.rb |
mail_engine-0.1.13 | test/dummy/app/mailers/user_mailer.rb |