Ik ben al een tijdje bezig met het mailen met php. Dit werkte met en zonder bijlage. Maar opeens werkt het niet meer. Als ik bij de header info kijk van het bericht zie ik dit.
Zoals te zien is stopt de header abrupt. Normaal kwam hier nog veel meer info. Ik snap er niks van. er is niks aan mijn code niks gewijzigd.
Dit is mijn code.
Ik begrijp het niet meer
Mijn header is goed
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| Received: from [212.45.32.108] (helo=mailrelay02.solcon.nl) by mx02.solcon.nl with esmtp (Exim 4.60) id 1GQK4a-0001VI-MP for jochemmol@domein.nl; Thu, 21 Sep 2006 10:38:20 +0200 Received: from [212.45.47.141] (helo=piano) by mailrelay02.solcon.nl with smtp (Exim 4.60) id 1GQK4Z-0004Su-GX for jochemmol@domein.nl; Thu, 21 Sep 2006 10:38:19 +0200 Subject: dsfsdf From: Jochem Mol <jochemmol@domein.nl> To:<jochemmol@domein.nl> Reply-To: jochemmol@domein.nl Subject: dsfsdf Date: Thu, 21 Sep 2006 10:38:23 +0200 Message-ID: <e1578c5fd13f429b8eba015fc9b38d3d@solcon.nl> Importance: Normal X-Envelope-From:jochemmol@domein.nl X-Mailer: PHP/5.1.4 X-MimeOLE: Produced By Koren IT v2.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="==Multipart_Boundary_x29d573490156ed4a869ba4b6abf45b4fx" |
Zoals te zien is stopt de header abrupt. Normaal kwam hier nog veel meer info. Ik snap er niks van. er is niks aan mijn code niks gewijzigd.
Dit is mijn code.
PHP:
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
| $headers = "From: Jochem Mol <jochemmol@domein.nl>\r\n"; $headers .= "To:<jochemmol@domein.nl>\r\n"; $headers .= "Reply-To: jochemmol@domein.nl\r\n"; $headers .= "Subject: Hallo\r\n"; $headers .= "Date: ".date("r")."\r\n"; $headers .= "Message-ID: <".$uniq_id."@".$srvr.">\r\n"; $headers .= "Importance: Normal\r\n"; $headers .= "X-Envelope-From:jochemmol@domein.nl\r\n"; $headers .= "Return-Path:jochemmol@domein.nl\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; $headers .= "X-MimeOLE: Produced By Koren IT v2.0\r\n"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; $bodymail .= "This is a multi-part message in MIME format.\r\n" . "--{$mime_boundary}\r\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\r\n" . "Content-Transfer-Encoding: 7bit\r\n" . $body . "\r\n"; $data = chunk_split(base64_encode($data)); $bodymail .= "--{$mime_boundary}\r\n" . "Content-Type: {$fileatt_type};\r\n" . " name=\"{$file_name}\"\r\n" . "Content-Transfer-Encoding: base64\r\n" . $data . "\r\n" . "--{$mime_boundary}\r\n"; $body = str_replace("<br>","\r\n",$body); // $body = chunk_split($body); // $body = chunk_split(base64_encode($body)); $bodymail .= "--{$mime_boundary}\r\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n" . " name=\"{untitled}\"\r\n" . $body . "\r\n" . "--{$mime_boundary}--\r\n"; |
Ik begrijp het niet meer

[ Voor 11% gewijzigd door Jochemmol op 21-09-2006 10:51 ]
Jochemmol