Send Emails from Frog CMS
November 28th, 2008
I needed a mailer backend which can handle complicated forms with any number of arbitary form fields. I also needed to be able to fully control the layout of sent emails. Something similar as oldie but goldie cgiemail.
Here comes Email Template plugin for Frog CMS.
It provides new page type called named Email template. You can POST your forms to this page type. Page contains the layout of the mail including the headers. Template then parses POST:ed data and sends the email.
To: Somebody <somebody@example.com> From: <?php print $_POST['name'] ?> <<?php print $_POST['email'] ?>> Subject: Frog Mail 1. Contact info Name.............: <?php print $_POST['name'] ?> Company..........: <?php print $_POST['company'] ?> Email............: <?php print $_POST['email'] ?> 2. Message <?php print $_POST['message'] ?> -- Sent by <?php print $_SERVER['REMOTE_ADDR'] ?>
Plugin assumes your PHP mail() function works properly. Currently it only supports plain text emails. Download and installation instructions at the project page. All feedback welcome.

January 26th, 2009 at 08:01 PM
the download link doesn’t work..please send me the right download link :(
January 28th, 2009 at 12:15 PM
hex: Link is fixed now. Thanks for the heads up!
February 2nd, 2009 at 10:08 PM
yes it does work now, thanks. and another question…is there any kind of validation when sending e-mails?
February 3rd, 2009 at 03:58 PM
hex: Backend validation is in my TODO list. In the meanwhile you can use JavaScript validation (that is what I am using).
July 1st, 2009 at 02:33 PM
Hi Mika,
i really like your little neat plugin and would also like to use it in my site, but i did not really get it to work. It simply says that the email can not be send everytime…
My form looks like: http://pastebin.com/m2220dc0c My Template like: http://pastebin.com/m3944d0b3
For the template is did set up a none layout, which only containts html base tags and a $this-content() in the body… Ive done this because otherwise there wasnt a none-layout available in frog 0.95.
Any ideas?
Thanks ahead TobMan
July 10th, 2009 at 04:20 PM
TobMan: If you know that your PHP is properly configured for sending email then I bet your HTML base tags are the sending. Just do a new layout with name none with following content:
And then use that layout with your email template.