= Mailer Behavior for Radiant
Created by: M@ McCray - mattmccray.com
Version: 0.2.1
Contact: mmccray@elucidata.net
The Mailer behavior enables form mail on a page. You can define email
templates using pages parts (email, and/or email_html). You configure
the recipients and other Mailer settings in a config part. Following
is an example of a properly formed config part that defines a 'contact'
mailer:
mailers:
contact:
subject: From the website of Whatever
from: noreply@mydomain.com
redirect_to: /contact/thank-you
recipients:
- one@one.com
- two@two.com
The following tags are available to help you build the form:
...
...
...
...
Simple example of a form:
Name:
Message:
Todo:
* Abstract tag naming, doesn't need to mimick HTML input types
* Support for file attachments to emails
* Validate recipient emails addresses -- at least the format
* Better Error handling