Sorry - bu my Contact form isn't working. I receive no mails.
I build in this code:
function Form() {
return new Form($this, "Form", new FieldSet(
new TextField("Name", "Name"),
new EmailField("Email", "E-Mail:"),
new FieldSet(
new FormAction("doform", "abschicken")
), new RequiredFields( "", ""
));
}
function doform($data, $form) {
$email = new Email_Template(
'user@user.de',
'me@mysite.com',
'Contact form'
);
$email->ss_template = 'Contact';
$email->populateTemplate(array(
'Name' => $data['Name'],
'Email' => $data['Email'],
));
$email->send();
}
I use also a Contact.ss. Are there any errors? How can I give an "OnComplete" message to the user?