Class: ApplicationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/application_mailer.rb

Direct Known Subclasses

Chaskiq::CampaignMailer

Instance Method Summary collapse

Instance Method Details

#trymeObject



5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/application_mailer.rb', line 5

def tryme
    campaign = Chaskiq::Campaign.first
    mail( from: "#{campaign.from_name}<#{campaign.from_email}>",
      to: "[email protected]",
      subject: "campaign.subject",
      body: "campaign.reply_email",
      content_type: "text/plain" ) do |format|
    format.html { render text:'newsletter' }
  end
end