Mail and mime

From: Date: Wed, 23 Feb 2005 06:10:41 +0000
Subject: Mail and mime
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17639@lists.php.net to get a copy of this message
Hello! 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? I also have a problem with the Mail class. I can't create a Mail instance ($mail =& Mail::factory('mail');) the script just dies. I have E_ALL error reporting on in my php.ini file and errors usually report fine but I don't get an error message here and the script won't continue after the factory call. It just dies. Any ideas what could be wrong? Thanks for your time. Regards Emil

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