Topic: Mail to other profile on same application site

Question about creating mail within a rails application (not traditional email) but regular mail between profiles.  Let's say I create a mail class:

class mail
def initialize(r, s, t, m)
@receipient = r
@sender = s
@title = t
@message = m
end

Something like this.  How do I route this to the recipient's mail view within their log-in state?  Hopefully I explained this clearly.