Esempio n. 1
0
 /**
  * Устанавливает заголовок письма в multipart с указанным типом и границей
  *
  * @param string $type
  * @param string $boundary
  *
  * @return Mail_Message_Message
  */
 public function multipart($type = 'mixed', $boundary = null)
 {
     $this->body = new ArrayObject();
     $this->head['Content-Type'] = array('Multipart/' . ucfirst(strtolower($type)), 'boundary' => $boundary ? $boundary : MIME::boundary());
     return $this;
 }