you have to replace the variables with your own
def notifycustomer(blahh, blah)
@subject = "Message from a visitor"
@recipients = blahh.email
@from = blah[:email]
@sent_on = Time.now
@body["title"] = blah[:title] #now you can use @title in your view
@body["msg"] = blah[:msg] # now you can use @msg in your view
@body["url"] = "some url" # now you can use @url in your view
end
if you have followed my sample code then your view should have
Hi!
You are having one email message from <%= @email %> with a title
<%= @title %>
and following is the message:
<%= @msg %>
url: <%= @url %>
Thanks
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---