Ich möchte, daß meine e-mail-Adresse, die in FormMail anzugeben ist, nicht ausgelesen werden kann.
Dazu habe ich den Tipp bekommen, nachfolgende Statements zu verwenden.
my @allow_mail_to;
my @SomeValues = (100,101,105,110,101,64,101,109,97,105,108,46,101,120,97,109,112,108,101); // Ascii-Werde
$allow_mail_to[0] = pack("C*",@SomeValues);
Das Script sieht daher so aus:
.......
.......
# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
# $allow_empty_ref = 0; *** Standardwert 0 nicht möglich, da kein HTTP_REFERER gesendet wird (siehe auch referers)
$allow_empty_ref = 1;
$max_recipients = 1;
$mailprog = 'SMTP:localhost';
$postmaster = 'postmaster@localhost';
# @referers = qw(
http://www.beinahe-gratis.de http://www.allraith.de http://www.all-raith.de localhost); Angabe wird ignoriert wegen $allow_empty_ref = 1; (siehe dort)
@referers = qw();
my @allow_mail_to;
my @SomeValues = (100,101,105,110,101,64,101,109,97,105,108,46,101,120,97,109,112,108,101); // Ascii-Werde
$allow_mail_to[0] = pack("C*",@SomeValues);
# @allow_mail_to = qw(admin@localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT DOCUMENT_ROOT HTTP_HOST HTTP_USER_AGENT
SERVER_ADDR SERVER_NAME SERVER_PROTOCOL);
$locale = 'de_DE';
$charset = 'iso-8859-1';
$date_fmt = '%A, dem %d.%m.%Y, um %H:%M:%S';
$style = '';
$no_content = 0;
$double_spacing = 1;
.......
.......
Wenn ich dies verwende kommt die Meldung:
Error: Bad or Missing Recipient
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients or @allow_mail_to. More information on filling in recipient/allow_mail_to form fields and variables can be found in the README file.
The recipient was: [ ]
FormMail © 2001-2003 London Perl Mongers
Kennt sich jemand mit dem Script und mit Perl aus, so daß er mir weiterhelfen kann. Ich bin nämlich ein totaler Anfänger - danke