Re: Mail and mime

From: Date: Wed, 23 Feb 2005 08:49:52 +0000
Subject: Re: Mail and mime
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17642@lists.php.net to get a copy of this message
I have a question about Mail_mime. I'm trying to add attachments to a mail. And it seems to work fine. The problem is when I don't define a content-type the default one is application/octet-stream. Will I have to create lots and lots of if statements myself for all file types I can figure out to add the appropriate content-type? That doesn't seem very smart... Are there no way for Mail_mime to like sense the file ending of a file and use that for mime content type or something?
RTFM http://www.php.net/manual/en/function.mime-content-type.php -- Massimiliano Arione :: http://www.garak.it/ :: * NO WORD * http://gnu.org/philosophy/no-word-attachments.html * NO HTML * http://efn.no/html-bad.html

« previous php.pear.general (#17642) next »