Thread Problem: Aus @ wird%40. (22 answers)
Opened by Gast at 2008-05-19 11:20

Gast Gast
 2008-05-19 11:51
#109899 #109899
Etwas Code? Bitte...

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!C:/Program Files/Perl/bin/perl

use Net::SMTP;
use MIME::Lite;

my $Label;
my $TmpAdressTo;
my $TmpEmailAddressTo;

print FILE "\n********************** NEW RECORD ************************\n";

foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);

# Un-Webify plus signs and %-encoding
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/<!--(.|\n)*-->//g;

if ($allow_html != 1) {
$value =~ s/<([^>]|\n)*>//g;
}

$FORM{$name} = $value;
if ($name ne 'Submit')
{
print FILE $name;
print FILE "=";
print FILE $value;
print FILE "\n";
print HTMLFILE "<TR>\n";
print HTMLFILE "<TD>";
print HTMLFILE $name;
print HTMLFILE "</TD>\n";
print HTMLFILE "<TD>";
print HTMLFILE $value;
print HTMLFILE "</TD>\n";
print HTMLFILE "</TR>\n";
}
}

print HTMLFILE "</TABLE>";
print HTMLFILE "</BODY>";
print HTMLFILE "</HTML>";

close (FILE);
close (HTMLFILE);

my $emaillinks;
my $emailrechts;
($emaillinks, $emailrechts) = split(/@/, $email);
$cc_address = $emaillinks."\@".$emailrechts;

Den ganzen Code kann ich leider wegen der 2000er Beschränkung nicht in einem Post unterbringen.
Ich muß noch anmerken daß der Code nicht von mir stammt. Ich pflege lediglich die Angelegenheit.

View full thread Problem: Aus @ wird%40.