note 42508 deleted from function.mail by aidan

From: Date: Sun, 08 Aug 2004 15:36:20 +0000
Subject: note 42508 deleted from function.mail by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74236@lists.php.net to get a copy of this message
Note Submitter: bart@dirkcornelis.nl ---- Just a quick addition to the nice function by "j [at] jgdataworks.com" Change this: <?php $content.= "Content-Type: Application/Octet-Stream;"; ?> into: <?php $content.= "Content-Type: " . mime_content_type ( $filelocation ) . ";"; ?> The mime-type will be set to match the attached file. This comes in handy when sending images. If your PHP install does not support the mime_content_type function you could use the unix "file" command. ( see mime_content_type comments ).

« previous php.notes (#74236) next »