Topic: Validation and ActionMailer

I have created a "Mail to a Friend" type feature for my site, but I want to add some validation to the ActionMailer. I need to require :to_email and :from_email fields in the form specifically. I have been trying to get the rails recipes set working with lib/validateable.rb, but alas I am having some difficutly. I think I am hung up on how to structure the controller. Here is the rundown. If I am going about it all wrong, I am happy to try any other method.

send.rb:

class Send < ActionMailer::Base
    include Validateable
    attr_accessor :name   
    validates_presence_of :to_email, :from_email
 
    def mail_to_a_friend (email_params, sent_at = Time.now)
        @recipients = email_params[:to_email]
        @from = email_params[:from_email]
        @subject = "Mail to A Friend"
        @sent_on = sent_at
        @body["url"] = email_params[:url]
    end
end

in the controller:

# Displays the Email to A Friend Form
def send_by_id
   @page = Page.find(params[:id])
end

# Sends the Email and Displays the Confirmation Page
def sent
    Send::deliver_mail_to_a_friend(@params[:email])
end


I know that I need to add something like the following:

# Displays the Email to A Friend Form
def send_by_id
   @page = Page.find(params[:id])
end

# Sends the Email and Displays the Confirmation Page
def sent
    if @send.valid?
    Send::deliver_mail_to_a_friend(@params[:email])
    else
      flash[:notice] = "Didn't Work Out"
    end
end


but I can't quite wrap my brain around it. Any thoughts? Thanks.