Postback action for email

This is useful for a contact form with ruby on rails.

See Recipe 33 in Rails Recipes.

  def contact
    if request.post?
      Emailer::deliver_contact_email(params[:email])
      flash[:notice] = "Your email was sent successfully. Thank you for your contact."
    end
  end

Comments