Walter, What you're looking for is a "todo" on this extension according to the readme. You could try and do it yourself, or wait:
http://dev.radiantcms.org/svn/radiant/branches/mental/extensions/ mailer/README 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 Good luck, Colin On Mar 27, 2007, at 3:48 PM, Walter Lee Davis wrote: > I had a tour through the code that makes Mailer work, and can't for > the > life of me see how you could define a server-side validation of any of > the input. The template is rendered. If there is POST data for a > tag in > the template, that field is filled. If there isn't, oh well. I imagine > that a JavaScript validator could be used, but those always feel icky > to me. > > Can anyone point out how you could intercept the form posting, perform > a little basic validation on it, and set some errors (missing, too > short, malformed, whatever) to be flashed to the visitor, and maybe > even pre-fill the form for correction? > > The current code looks as though it just takes any old post, and tries > to mail it, and redirects if the mail gets sent. > > Thanks, > > Walter > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
