Rails Mailer Mimepart Visible As Text In Message Body
I'm sending test mail using ActionMailer. The template is being rendered and mail is being delivered fine. The only problem is the mimepart and other header data is displayed by Go
Solution 1:
Don't specify :content_type => "text/html"
in your mail method. Since you're using format block, rails will automatically pick up mime type.
MORE DETAILS:
Try this to send out multipart email (ie. both html and text formats of email). Notice the order of formats.
mail(:to => "apoorvparijat@gmail.com", :subject => "html mailer") do |format|
format.text { render :text => "bing" }
format.html { render 'testing' }
end
Post a Comment for "Rails Mailer Mimepart Visible As Text In Message Body"