search for: deliver_send_email

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

2005 Dec 17
13
Rookie with ActionMailer
...-fVOoFLC7IWo@public.gmane.org /app/controllers/home_controller.rb:34:in `email_list'' script/server:54 jpfeifer-fVOoFLC7IWo@public.gmane.org is my email and is pulled from my database table I''m set up like this: Controller: def email_list email = Email.find(:first) MailList::deliver_send_email(email) end Model: class MailList < ActionMailer::Base def send_email(email) @recipients = email.address @from = ''email-Jbz+COfnBiiw5LPnMra/2Q@public.gmane.org'' @subject = ''thanks for entering the contest'' end end Environment: # Include your app'...
2006 Jan 23
1
learning how models, controllers, and views pass data
...class Admin::CreateEmailController < Admin::BaseController layout ''admin'' def index write render :action => ''write'' end def write @email = Email.new end def email_list email = Email.find(:all) email.each { |address| MailList::deliver_send_email(address) } redirect_to (:action => @section) end end where I want the user to type a message body into a textarea field: <%= error_messages_for ''email'' %> <!--[form:email]--> <p><label for="email_message">Message</label><br/&g...