Nieuw lid |
|
ik heb dit nu toegevoegd:
$fileatt2 = "opensolli/$trertsollic"; // Path to the file
$fileatt_type2 = "application/octet-stream"; // File Type
$fileatt_name2 = "$trertsollic"; // Filename that will be used for the file as the attachment
$file2 = fopen($fileatt2,'rb');
$data2 = fread($file2,filesize($fileatt2));
fclose($file2);
$data2 = chunk_split(base64_encode($data2));
$email_message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type2};\n" .
" name=\"{$fileatt_name2}\"\n" .
"Content-Disposition: attachment;\n" .
" filename=\"{$fileatt_name2}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data2 . "\n\n" .
"--{$mime_boundary}--\n";
$fileatt2 = "opensolli/$trertsollic"; // Path to the file $fileatt_type2 = "application/octet-stream"; // File Type $fileatt_name2 = "$trertsollic"; // Filename that will be used for the file as the attachment $file2 = fopen($fileatt2,'rb'); $email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type2};\n" . " name=\"{$fileatt_name2}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$fileatt_name2}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data2 . "\n\n" . "--{$mime_boundary}--\n";
maar dit werkt niet. Nog steeds wordt er maar 1 attachement meegestuurd.... Wat doe ik fout? |