class EmailaddrController < ApplicationController
def first_time
session[:title]='who to mail?'
redirect_to :action => "index"
end
def get_choices
["arun.mehta@gmail.com","kunalsachdeva7@gmail.com","ankitmittal07@yahoo.co.in",
"lalit.kumar53@yahoo.com"
]
end
def sendmail (recipient,subject=
'mail from skid',message=session[:text])
message=session[:text] unless message
Sender.deliver_contact(recipient, subject, message)
return if request.xhr?
session[:title] = 'Message sent successfully'
end
def selected(str)
sendmail(str)
nil
end
def designers
'Co-Designers :Kunal
Sachdeva , Ankit Mittal, Lalit Kumar'
end
def extras
@photo=[' ',
' ',
' ',
' '
]
@title=get_title
end
end