Beat: Formmailer-Projekt

Beitrag lesen

Wie ich schon schrieb: SELF CPAN. Da passt das hin. Als Ergänzung zu SELFHTML, als Rettungsboot für Perl, als Tribut an eine Community die am Wegträumen ist.

Das Formular-Frontend-Modul ist in den nächsten Tagen fertig.
Die API braucht noch etwas Feinschliff und die innere Logik des Moduls muss ich konsequent durchtesten.

Das Modul bietet Standardfelder
fullname, lastname, prename,
contact, email, phone, mobile, address, plz, location, country,
tags, subject, text, priority,
submit preview

Der Aufbau wird mit Gruppen festgelegt.
Aber auch eigene Felder können definiert werden.

Die API sieht so aus:

1.

use SelfFormmail;

2.

my $mail = new SelfFormmail;

3.

$mail->set_config( HASHREF );

4.

$mail->set_fields( HASHREF );

5.

$mail->set_groups( HASHREF );

6.

my ($status, $text) = $mail->process();

oder auch so:

1.

use SelfFormmail;

2.

my $mail = new SelfFormmail;

3.  Methoden Name ist suboptimal

$mail->set_config_by_file( $pathtofile );

4.

my ($status, $text) = $mail->process();

Ich möchte SelfSendmail als Modul einbinden, wobei das Modul unabhängig vom Formmail-Frontend verwendet werden kann.

Wäre schön, wenn es Eingang in das Selfhtml Angebot fände.

mfg Beat

--
><o(((°>           ><o(((°>
   <°)))o><                     ><o(((°>o
Der Valigator leibt diese Fische