Para::Frame::Action::send_mail - Formmail
See also Para::Frame::Email::Sending.
[% META next_action='send_mail' %] <p> Name [% input('name') %] <p> Email [% input('email') %] <p> Message [% textarea('body') %] <p> [% submit('Send the mail') %]
All query params is turned into params with the same name and sent to the email template.
Special recognized query params is
recipient or to : The addres to send the email to name : The name of the sender email : Email of the sender subject : The subject of the email subject_prefix : String to prefix the subject template : The email template to be used reply_to : Sets an reply_to address return_message : Sends this text as a success message
The mail is sent by proxy.
All query params beginning with prop_
are described with their
values in the variable props
.
The default email template $home/pf/email/default.tt
presents the
variables body
and props
.
The site config should specify valid sender email domains. If no recipient is specified, it defaults to the site email address. Example:
Para::Frame::Site->add({ 'code' => 'rit', 'email' => 'support@rit.se', 'email_domains' => ['rit.se'], });