[Radiant] Howto use a template for the mailer extension

Peter Berkenbosch peter.berkenbosch at gmail.com
Thu Nov 22 07:54:26 CST 2007


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:<br/>
<r:mailer:text name="naam" /><br/>
E-mail adres:<br />
<r:mailer:text name="email" /> <br/>

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

Thanks.

-- 
met vriendelijke groet,

Peter Berkenbosch



More information about the Radiant mailing list