Browse Source

Added A. Kirchwitz's check for set put empty MIME type for attachments.

phutnick 24 years ago
parent
commit
4652d3705b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/smtp.php

+ 1 - 1
functions/smtp.php

@@ -76,7 +76,7 @@
       if (isMultipart()) {
       if (isMultipart()) {
          foreach ($attachments as $info)
          foreach ($attachments as $info)
 	 {
 	 {
-	    if (isset($info['type']))
+	    if (isset($info['type']) && $filetype != "")
  	       $filetype = $info['type'];
  	       $filetype = $info['type'];
             else
             else
                $filetype = 'application/octet-stream';
                $filetype = 'application/octet-stream';