kaking
Messages postés52Date d'inscriptionlundi 25 février 2008StatutMembreDernière intervention20 avril 2020
-
10 janv. 2010 à 11:11
bonjour a tous,
voila, bon bah j'envoie un mail avec piece jointe qui marche du tonnerre sous outlook, mais sous yahoo, lorsque je recoit le mail avec la piece jointe nommée 'blabla.pdf', le fichier n'est pas joint et dans le corps du message je recois :
This is a multi-part message in MIME format. --------------b0eb737c46fa5a69d277f487bdb60bba Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
/*
// OLD version - used in php < 3.0.6 - replaced by chunk_split()
$deb=0; $len=76; $data_len= strlen($data);
do {
$ata[$k++]= substr($data,$deb,$len);
$deb += $len;
} while($deb < $data_len );
*/
}
$this->attachment= implode($sep, $ata);
}
// je gere l'extention du fichier
switch(strrchr(basename($name2), "."))
{
case ".gz": $filetype = "application/x-gzip"; break;
case ".tgz": $filetype = "application/x-gzip"; break;
case ".zip": $filetype = "application/zip"; break;
case ".pdf": $filetype = "application/pdf"; break;
case ".png": $filetype = "image/png"; break;
case ".gif": $filetype = "image/gif"; break;
case ".jpg": $filetype = "image/jpeg"; break;
case ".txt": $filetype = "text/plain"; break;
case ".htm": $filetype = "text/html"; break;
case ".html": $filetype = "text/html"; break;
case ".xls": $filetype = "application/vnd.ms-excel"; break;
default: $filetype = "application/octet-stream"; break;