Howto use a template for the mailer extension

Hello List,

In the README of the mailer extensions is mentioned that you can add a
page
part email and/or email_html to use as a mail template.

I’ve looked it up in the mailer code:

plain_body = part( :email ) ? render_part( :email ) : render_part(
:email_plain )
html_body = render_part( :email_html ) || nil

The mail form has something like:
Naam:

<r:mailer:text name=“naam” />

E-mail adres:

<r:mailer:text name=“email” />

How can I use this in a template? (I feel like an idiot, but I don;t get
it)

Thanks.


met vriendelijke groet,

Peter B.

Found!

http://dev.radiantcms.org/radiant/wiki/HowToUseMailerExtension

P.

On Nov 22, 2007 2:54 PM, Peter B. [email protected]
wrote:

The mail form has something like:

met vriendelijke groet,

Peter B.


met vriendelijke groet,

Peter B.

Hi Peter!

I had the same kind of questions,
Because I have a page with several forms like “tell a friend”,
“newsletter
sign up”, and “contact us”, and I was thinking how to make it, because
also
are forms with special layouts, so the <r:mailer:foo /> tags are not
usefull
for me.

Which <r:mailer:form /> does is to make a form with attributes
method=post
and action=name-of-mailer-page
And also add a hidden form field called mailer_name with
value=“the-name-of-the-mailer”, and then if you add, in example:
<r:mailer:text name=“naam” />

You’ll get something like

So, you can hardcode the form following this rules, and then have more
flexibility.

Is a very basic workaround, but worked for me.

Regards,

Q.