Thread SendMail-Attachment: ?!: Attachment mit Perl (25 answers)
Opened by soilant at 2004-08-07 17:43

esskar
 2004-08-07 20:22
#3347 #3347
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
naja...
eb's code ist anders :)

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
$boundary = "----=_Boundary-000-9e78db45-c799-4775-968b-1170dea96a64";
print MAIL <<EOA;
From: $from
To: $to
Cc: $bc
Subject: $subject
Mime-Version: 1.0
Content-type: multipart/mixed; boundary="$boundary"

--$boundary

Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

$text

--$boundary

Content-type: image/jpeg; name="$file"
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="$file"

$encoded_file

--$boundary--

.
EOA


wie sieht denn deine form zum hochladen der datei aus?
benutzt du enctype="multipart/form-data" ?

View full thread SendMail-Attachment: ?!: Attachment mit Perl