Alors pas de solutoipns ??
J'ai essayé bcps de codes
ça marchait avec un seul fichier mais avec plusieurs non :? !!! il me met tous ds un seul fichier avec un taille de 0Ko
je pense que c'est la structure qui n'est pas bonne voici le code:
[code]<?
$headers = "From: Votre Nom <
[email protected]>\n";
$headers .= "Content-type: multipart/mixed; ";
$headers .= "boundary=\"Message-Boundary\"\n";
$headers .= "Content-transfer-encoding: 7BIT\n";
//$maill = $body_top.stripslashes($msg);
for($i=0;$i<=4;$i++)
{
if ($a=is_uploaded_file($attach[$i])) {
$body_top = "--Message-Boundary\n";
$body_top .= "Content-type: text/plain; charset=US-ASCII\n";
$body_top .= "Content-transfer-encoding: 64BIT\n";
$body_top .= "Content-description: Mail message body\n\n";
$msg_cpl[$i].= "\n\n--Message-Boundary\n";
$msg_cpl[$i].= "Content-type: $attach_type[$i]; name=\"$attach_name[$i]\"\n";
$msg_cpl[$i].= "Content-Transfer-Encoding: BASE64\n";
$msg_cpl[$i].= "Content-disposition: attachment; filename=\"$attach_name[$i]\"\n\n";
$msg_cpl[$i].= "$encoded_attach[$i]\n";
$msg_cpl[$i].= "--Message-Boundary--\n";
}
$maill.=$body_top.$msg_cpl[$i];
}
$maill.= stripslashes($msg);
if (mail ("$adresse","".stripslashes($subject)."","$maill",$headers)) {
echo ("<center><font color=green>Mail envoyé</font></center>");
}
?>[/code]
merci