On Apr 1, 1:29 pm, HelloRails
<vitalizakhar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi!
>
> I have scaffold named `users` with fields: `email, surname.`
>
> I inserted about `10 users.`
>
> Bottom of the scaffold there are button called `"Send"`.
>
> When i pressed this button email receive all 10 people with following
> text => `"Hello! my number is 718927 (this is generated by
rand(9999)
> for example)."`
>
> How can i do it? Can i do it ?
>
> I should have in questions_controller:
>
> def button_send
>
> end
>
> or what ? or through actionmailer? Idont understand the logic as well
You will indeed be using actionmailer to do the actualy sending of
emails - I''d start with the actionmailer guide at
guides.rubyonrails.org. Then you''ll need to add an action to your
controller that calls the mailer you''ve just created
Fred
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.