dtaniwaki / mandriller

Mandrill SMTP API integration for ActionMailer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set_text_auto undefined

psugihara opened this issue · comments

I'm trying to use set_text_auto:

class UserMailer < Mandriller::Base
  include AbstractController::Callbacks # To use before_filter in ActionMailer::Base

  set_auto_text true
  set_open_track
  set_click_track
  set_google_analytics default_url_options[:host]

  before_filter do
    set_google_analytics_campaign "#{mailer_name.gsub(/_mailer$/, '')}/#{action_name.gsub(/_email$/, '')}"
  end

  ...

end

I'm getting NameError: undefined local variable or methodset_auto_text' for UserMailer:Class`. Are the docs wrong or is there something obviously wrong I'm doing?

Thanks,
Peter

Thank you for reporting the issue! I released a new version 0.2.0 with the fix. You should be able to use set_auto_text with the new version.