Thanks for replying Marc. I could definitely go this route .. I'm
curious though - is there no way to do this w/ Mailer?

The solution you describe seems like a work-around as opposed to the
standard/recommended way one would do it. Do I have the wrong
impression or is this the recommended way of sending multiple emails
upon form submission w/ Radiant?

On Feb 22, 3:25 pm, Marc <marc.bosc...@gmail.com> wrote:
> You could always usehttps://github.com/dirkkelly/radiant-forms-extension
> and create an add-on which uses different page parts to the built in
> form mail add-on to send the other email.
>
> I'm in the process of creating an add-on to store the form results in
> a table. See radiant-forms-extension/app/models/form_mail.rb for the
> built in add-on
>
> The trick is that add-ons are called in order expressed in the
> 'config' page part.
>
> eg.
>
> storing:
>   extension: store # my custom add-on, could always dup the form mail
> add-on; see the source
>   result: *email_field_references…*
> mailing:
>   extension: mail # usual example in documentation
>   fields:
>     from: person[email]
>     to: person[email]
>     subject: contact[subject]
>     reply_to: person[email]
>
> Ideally if the built in form mail code was augmented to take an
> optional prefix then multiple instances of the add-on could be used…
>
> e.g.
> mailing_user:
>   extension: mail # uses usual page parts: content, etc.
>   fields:
>     from: person[email]
>     to: person[email]
>     subject: contact[subject]
>     reply_to: person[email]
>
> internal_mailer:
>   extension: mail
>   prefix: 'internal-'  # would use page parts: internal-content, etc.
>   from: em...@email.com
>   to: em...@email.com
>   reply_to: em...@email.com
>   fields:
>     subject: contact[subject]
>
> Regards,
>
> Marc
>
> On Feb 22, 8:44 am, craayzie <flesh...@gmail.com> wrote:
>
> > I've installed the mailer extension and it works great! I'd like to
> > send a "thank you for contacting us" email to the form submitter in
> > addition to receiving a notification email letting me know that
> > they've submitted a form. Unfortunately, I don't see a way to send
> > multiple emails with mailer ..
>
> > Thanks for pointing me in the right direction!

Reply via email to