svncommit
2006-11-21 84f9312e1d17725db6040554a993db38292d46bd
program/steps/mail/sendmail.inc
@@ -101,23 +101,21 @@
                         $pos + strlen($searchstr),
                         $pos2 - ($pos + strlen($searchstr)));
write_log('emoticon', "looking for $image_name in array:" . print_r($included_images, true));
    $body_post = substr($body, $pos2);
    if (! in_array($image_name, $included_images))
      {
      $body_post = substr($body, $pos2);
      // add the image to the MIME message
      $img_file = $INSTALL_PATH . '/' . $searchstr . $image_name;
      if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
        {
        show_message("emoticonerror", 'error');
        }
      $body = $body_pre . 'cid:_' . $image_name . $body_post;
      array_push($included_images, $image_name);
      }
    $body = $body_pre . 'cid:_' . $image_name . $body_post;
    $last_img_pos = $pos2;
    }