NAME

Para::Frame::Renderer::Email - Renders an email for sending

new

  Para::Frame::Renderer::Email->new( \%args )

render_message

  $e->render_message( $to_addr )

If dataref is defined, returns it as the finished message.

Otherwise, concatenates the header with the body_encoded

The body encoding is dependant on the headers and the headers are dependant on the body.

Unless both header and body_encoded are defined, we will call /render_header with $to_addr that in turn will set the header and body_encoded properties.

add_attachments

render_header

The header depends on the body. The body depends on the header.

render_body_from_template

render_body_from_plain

render_body_from_html

email

email_new

email_new_html

email_clone

params

set_dataref

set_tt_params

The standard functions availible in templates. This is called before the page is rendered. You should not call it by yourself.

lang
The Para::Frame::Request/preffered_language value.
req
The req object.
u
$req->{'user'} : The Para::Frame::User object.

Special params are:

on_set_tt_params
Will be called as a code reference with $param as the first parameter.

add_params

  $resp->add_params( \%params )

  $resp->add_params( \%params, $keep_old_flag )

Adds template params. This can be variabls, objects, functions.

If $keep_old_flag is true, we will not replace existing params with the same name.

SEE ALSO

Para::Frame