Sha256: cb884582f26a27b5443bccd4ba358263573cf85a2277f406b6cbb8ce2b6baa63
Contents?: true
Size: 976 Bytes
Versions: 7
Compression:
Stored size: 976 Bytes
Contents
class SocialMailerController < ApplicationController include ShareLayouts::Controllers::ActionController trusty_layout "default", {:only => :create_social_mail} no_login_required def create_social_mail mailer_options = { :to => params[:to], :from => params[:from], :from_name => params[:from_name], :message => params[:message], :subject => params[:subject] } if verify_recaptcha RadSocialMailer.social_mail(mailer_options).deliver_now head :ok else head :bad_request, :ErrorMsg => "Please verify that you are not a robot. Tick the reCAPTCHA checkbox." end end def social_mail_form render :template => "rad_social_mailer/social_mail_form", :layout => false, :locals => { :email_message => params[:email_message], :email_subject => params[:email_subject], :email_action_url => params[:email_action_url] } end end
Version data entries
7 entries across 7 versions & 1 rubygems