search for: deliver_invite

Displaying 1 result from an estimated 1 matches for "deliver_invite".

2010 Feb 08
0
recommending friends, using RoR's Mailer
...#39;' part as obviously, I dont want to only email people who are already on the site. def invite @title = "Invitation" if param_posted?(:user) email = params[:user][:email] user = User.find_by_email(email) if user UserMailer.deliver_invite(@user) flash[:notice] = "Invite sent." redirect_to :action => "index", :controller => "site" else flash[:notice] = "There is no user with that email address." end end end The UserMailer code is...