Does anyone know how to send a mail with an attachment which is longer than 1000 characthers and not get the "!\n " after every 1000 characters?
$hdr .= "Content-Type: csv;";
$hdr .= 'name=File_'.$date_in_attatchement.'.csv'."\r\n";
$hdr .= "Content-Disposition: attachment;";
mail($mail_to, 'Text ins subject '.$date_in_subject, $readfile, $hdr);
I have read in the php manual about <CRLF> but it says nothing about how to avoid this. Is there any other way to send an mail using another function?
Does it have something to do with the Content-Type?
Kj