Simple formmail question

I have a few forms that I’d like users to fill out. The results of
the form will be sent to a few addresses.

What’s the least painless way to do this and keep everything DRY?
There’s no database involved. Ideally, I’d like to email the form
questions with the answers inline.

Seems like using ActionMailer and separate email views would be
overkill in this situation.

Joe

On 1/24/06, Joe Van D. [email protected] wrote:

I have a few forms that I’d like users to fill out. The results of
the form will be sent to a few addresses.

What’s the least painless way to do this and keep everything DRY?
There’s no database involved. Ideally, I’d like to email the form
questions with the answers inline.

Seems like using ActionMailer and separate email views would be
overkill in this situation.

Any ideas? Or should I use ActionMailer and have ActionMailer views
that duplicate the form information and manually insert the form
answers into the ActionMailer views?

On Jan 25, 2006, at 7:55 AM, Joe Van D. wrote:

Any ideas? Or should I use ActionMailer and have ActionMailer views
that duplicate the form information and manually insert the form
answers into the ActionMailer views?

Pass down the rendered for into the ActionMailer and attach the HTML to
the email.


– Tom M.

On 1/25/06, Tom M. [email protected] wrote:

Seems like using ActionMailer and separate email views would be
overkill in this situation.

Any ideas? Or should I use ActionMailer and have ActionMailer views
that duplicate the form information and manually insert the form
answers into the ActionMailer views?

Pass down the rendered for into the ActionMailer and attach the HTML to
the email.

Eh, the rendered for?

It would be great if I could send out an email that contained all the
forms contents (and the users) answer to the email addresses.

On 1/25/06, Joe Van D. [email protected] wrote:

Eh, the rendered for?

It would be great if I could send out an email that contained all the
forms contents (and the users) answer to the email addresses.

Oh, you mean rendered form?

So,

class Forms < ActionController
def submit_form
FormMailer::deliver_form_submission( … )
end
end

I’m not sure what … would be. Some call to render that would render
the action/view that they were just on?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs