I am sending the emails as per the documentation order : html /
text
but users are receiving the text version first and not the html ( need
to switch to an alternative version ..)
I guess I missed a point but which one ?
thanks for your help
RAILS DOC =======class UserMailer < ActionMailer::Base
default :from =>
"notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
def welcome_email(user)
@user = user
@url = "http://example.com/login"
mail(:to => user.email,
:subject => "Welcome to My Awesome Site") do |format|
format.html { render ''another_template'' }
format.text { render ''another_template'' }
end
end
MY USER MAILER ======def analysis_received(user_id, clip_id, request_id)
...... skipped lines ......
@template = "user_mailer/#{I18n.locale.to_s}/
analysis_received.erb"
mail(:to => @user[:email], :subject =>
"#{@request_type.capitalize}") do |format|
format.html { render :template => @template }
format.text {render :layout => false, :template =>
@template}
end
end
end
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.