search for: emailer_control

Displaying 2 results from an estimated 2 matches for "emailer_control".

2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
...''email'', ''message_body'', :rows => 20, :cols => 50 %></p> <%= submit_tag "Send", :class => "submit" %> or <%= link_to ''Cancel'', ''/'' %> <% end -%> in app/controllers/emailer_controller.rb: class EmailerController < ApplicationController def sendmail email = params[:email] recipient = ''abc-gJEnWOaiUB4@public.gmane.org'' subject = ''Request A Call Back'' firstname = email["firstname"] surname = email[&qu...
2008 Oct 25
7
Routing of result not clear in ActionMailer
Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer_controller.rb class EmailerController < ApplicationController def send_mail Emailer::deliver_contact_email(params[:email]) end end I have a model emailer.rb class Emailer < ActionMailer::Base def contact_email(email_params, sent_at = Time.now) @recipients = "webmaster-hc...