<% require 'linterra/rsp/controller' require 'linterra/rsp/util' require 'linterra/rsp/session' require 'linterra/rsp/template' # Handle POST method. if (@req.valueExists('submit')) name = @req.value('name'); buyertype = @req.value('buyertype'); email = @req.value('email'); email2 = @req.value('email2'); city = @req.value('city'); state = @req.value('state'); zip = @req.value('zip'); phone = @req.value('phone'); address = @req.value('address'); comments = @req.value('comments'); agentname = @req.value('agentname'); moveto = @req.value('moveto'); price = @req.value('price'); describe = @req.value('describe'); refer = @req.value('refer'); address2 = @req.value('address2'); message = "FROM: TEXAS AGENT NETWORK \n"; message2 = "FROM: TEXAS AGENT NETWORK \n"; # Compose simple text message: message += "Subject: TEXAS AGENT REFERRAL Web Inquiry\n\nSIGN UP\nMessage from #{name}\n\n-------------\nName: #{name}\n\nAddress: #{address} #{city} #{state} #{zip}\nEmail: #{email2}\nPhone: #{phone}\nEmail: #{email}\n\n----------\n\nBuyer Type: #{buyertype}\n----------\nMoving To: #{moveto}\nPrice: #{price}\nDescribe requested number of bedrooms, baths, etc.:\n #{describe}\nComments:\n\n#{comments}\n -----\nI am interested in the following address: #{address2}\n\n\nAgent Info: #{agentname}\n#{email}\n\nI would like to refer this to the following agent: #{refer}\n\n\n"; message2 += "Subject: Thank you for submitting your referral\n\nThank you for submitting your referral on our website.\n If you have any questions, please call us at (800) 848-2384.\n\n- Texas Agent Network\n\n\nwww.texasagentnetwork.com\n\n\n"; #Try to stop spammers if (@req.value('subject') == '') require "net/smtp" #Send message to smtp_server = "10.1.1.5" Net::SMTP.start(smtp_server) do |smtp| smtp.send_message message, "info@c21bowman.com", "info@c21bowman.com" smtp.send_message message, "info@c21bowman.com", "recruiting@c21bowman.com" smtp.send_message message2, "info@c21bowman.com", email end #Thank user puts "

 

 

Your e-mail was sent succesfully. Thank you for contacting us.







"; else #Warn that we think they are spamming us puts "

 

 

Our form thinks you are trying to spam us. If you are not, go back and try again. Be sure to NOT fill in the subject field!







"; end else %>

Submit Referral

To submit a referral, fill out the form below and click Submit. If you have any questions,
contact Kenneth or Alethea at 817-328-2500
.

Customer Name:
Select One:
Address:
Subject:
NOTE: If you can see this field, leave it blank. It is to catch spammers!
City:
State:
Zip:
Cell Phone:
Email Address:
Moving To:
Price Range:
Address of Property Interested:
(optional)
   
  Describe required number of bedrooms, baths, garages, etc.:
 
   
  Additional Comments or Questions:
 
Your Information
 
Agent Name:
Agent Email Address:
If you would like to submit this referral to an agent,
please enter his/her name below:
 
 
   
   
<% end %>
 
 
 

An affiliate with CENTURY 21 Mike Bowman, Inc. | Texas Agent Network (DBA IServe Inc.)

*program subject to change without notice