Send Emails from Frog CMS
28 November 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.
