Class | JmailController |
In: |
app/controllers/j.rb
app/controllers/jmail_controller.rb |
Parent: | ApplicationController |
# File app/controllers/j.rb, line 2 2: def index 3: @buttons={} 4: @modules=[] 5: @choices=[] 6: # render :file => Dir.pwd+'/app/views/jmail/index.html.erb' 7: end
# File app/controllers/jmail_controller.rb, line 12 12: def index 13: @modules=[] 14: @buttons={} 15: @choices=[] 16: end
# File app/controllers/j.rb, line 8 8: def sendmail 9: # email = params["email"] 10: recipient = 'arun.mehta@gmail.com' 11: #email["recipient"] 12: subject = 'hi from skid' 13: #email["subject"] 14: message = 'test 1' 15: #email["message"] 16: s=Sender.new 17: s.contact(recipient, subject, message) 18: return if request.xhr? 19: render :text => 'Message sent successfully' 20: end
# File app/controllers/jmail_controller.rb, line 2 2: def sendmail 3: email = params["email"] 4: recipient = email["recipient"] 5: subject = email["subject"] 6: message = email["message"] 7: Sender.deliver_contact(recipient, subject, message) 8: return if request.xhr? 9: render :text => 'Message sent successfully' 10: end