Helper class for constructing simple formmailers for embedding directly into a page.

Available form fields can be controlled by a DM2 schema

Example:

$formmailer = new org_openpsa_mail_formmailer;
$formmailer->to = 'website_owner@domain';
$formmailer->process();
package org.openpsa.mail

 Methods

__construct ($schemadb)

Parameters

$schemadb

process ()

_send_form ($values)

Parameters

$values

 Properties

 

string $body

Email body template
 

string $from

Email sender
 

string $subject

Email subject template
 

string $to

Email recipient
 

array $_schemadb

The schemadb we're working with