예제 #1
0
파일: Mail.php 프로젝트: techart/tao
 static function with_images_cb($m)
 {
     $src = '.' . $m[2];
     if (IO_FS::exists($src)) {
         self::$multipart = 'related';
         $id = md5($src);
         self::$attaches[$id] = Mail_Message::Part()->file($src)->content_id("<{$id}>")->content_disposition('inline');
         return $m[1] . "=\"cid:{$id}\"";
     } else {
         return $m[0];
     }
 }
예제 #2
0
파일: Types.php 프로젝트: techart/tao
 protected function attaches_cb($m)
 {
     $src = '.' . $m[2];
     $this->multipart = 'related';
     $id = md5($src);
     $this->attaches[$id] = Mail_Message::Part()->file($src)->content_id("<{$id}>")->content_disposition('inline');
     return $m[1] . "=\"cid:{$id}\"";
 }
예제 #3
0
파일: Message.php 프로젝트: techart/tao
 /**
  * Добавляет к письму attach фаил
  *
  * @param        $file
  * @param string $name
  *
  * @return Mail_Message_Message
  */
 public function file_part($file, $name = '')
 {
     return $this->part(Mail_Message::Part()->file($file, $name));
 }