my question is:
is it possible to recognize which type of file is opened ?
because I'm trying to build a class sending mail using just the function mail(), and in case I attach a jpg file , message inside should be a string like:
Content-Type: image/jpeg;
name="iori-awesome.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="iori-awesome.jpg"
Look at the first line, "image/jpeg" !
sorry for the bad english and thanks