Hello, On 10/03/2002 07:41 PM, Php List wrote: > Hi, > Is it possible to get a mime type of a file? > I need to be able to attach files, but I won't always know the mime type of what is >being attached. > I could look at the extension of the file for a general Idea, but I wouldn't know if >a .jpg file is an image/jpg or image/jpeg.(progressive) and there seems to be a >difference between the two.
This class that can compose and send messages with attachments already guess the MIME type for you from the file name extension: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php