- @replyurl = url_for(:host => SERVER_URL,
- :controller => "message",
- :action => "new",
- :display_name => comment.user.display_name,
- :title => "Re: #{comment.diary_entry.title}")
-
- mail :from => from_address(comment.user.display_name, "c", comment.id, comment.digest),
- :to => comment.diary_entry.user.email,
+ @replyurl = new_message_url(comment.user, :message => { :title => "Re: #{comment.diary_entry.title}" })
+
+ @author = @from_user
+
+ attach_user_avatar(comment.user)
+
+ mail :from => from_address(comment.user.display_name, "c", comment.id, comment.digest, recipient.id),
+ :to => recipient.email,