| Class | EmailaddrController |
| In: |
app/controllers/emailaddr_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/emailaddr_controller.rb, line 27
27: def designers
28: 'Co-Designers :<a
29: href="http://kunalsachdeva.wordpress.com/">Kunal
30: Sachdeva</a> , Ankit Mittal, Lalit Kumar'
31: end
# File app/controllers/emailaddr_controller.rb, line 32
32: def extras
33: @photo=[' <img src=Dir.pwd+"\images\ccontact\arun.jpg" height="120" width="120">',
34: ' <img src=Dir.pwd+"\images\ccontact\kunal.jpg" height="120" width="120">',
35: ' <img src=Dir.pwd+"\images\ccontact\Ankit.jpg" height="120" width="120">',
36: ' <img src=Dir.pwd+"\images\ccontact\lalit.jpg" height="120" width="120">'
37: ]
38: end
# File app/controllers/emailaddr_controller.rb, line 4 4: def first_time 5: session[:title]='who to mail?' 6: redirect_to :action => "index" 7: 8: end
# File app/controllers/emailaddr_controller.rb, line 10
10: def get_choices
11: ["arun.mehta@gmail.com","kunalsachdeva7@gmail.com","ankitmittal07@yahoo.co.in",
12: "lalit.kumar53@yahoo.com"
13: ]
14: end
# File app/controllers/emailaddr_controller.rb, line 24
24: def selected(str)
25: sendmail(str)
26: end
# File app/controllers/emailaddr_controller.rb, line 16
16: def sendmail (recipient,subject=
17: 'mail from skid',message=session[:text])
18: message=session[:text] unless message
19: Sender.deliver_contact(recipient, subject, message)
20: return if request.xhr?
21: session[:title] = 'Message sent successfully'
22: end