On Feb 4, 2010, at 12:48 PM, Jay Dev wrote:

I am having problems with the formatting of my email.
This is what my code looks like

-----
     email =
NotifyMailer.create_send_notifications(@notification,@test)
     email.set_content_type("text/plain")
     NotifyMailer.deliver(email)
-------

and my send_notifications.rhtml looks like this

-----
<%=h @notification.message %>

Don't escape it. h is an alias for html_escape which (for 2.3.2) does this on the argument:

to_s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }


-----

When I send an email with quotes, for example ( test "message") my email
looks like this

test &quot;message&quot

I am running rails 1.2.3. Any help will be appreciated.
--
Posted via http://www.ruby-forum.com/.

--
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- t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en .


--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to