Lines Matching refs:mime
137 * @param string $mime Mimetype of the attached file
141 public function attachFile($path, $mime, $name = '', $embed = '') argument
149 'mime' => $mime,
159 * @param string $mime Mimetype of the attached file
163 public function attachContent($data, $mime, $name = '', $embed = '') argument
166 [, $ext] = explode('/', $mime);
172 'mime' => $mime,
191 [, $mime] = mimetype($media);
196 $this->attachFile($file, $mime, '', 'autoembed' . $embeds);
517 $mime = '';
531 $mime .= '--' . $this->boundary . MAILHEADER_EOL;
532 … $mime .= $this->wrappedHeaderLine('Content-Type', $media['mime'] . '; id="' . $cid . '"');
533 $mime .= $this->wrappedHeaderLine('Content-Transfer-Encoding', 'base64');
534 $mime .= $this->wrappedHeaderLine('Content-ID', "<$cid>");
536 … $mime .= $this->wrappedHeaderLine('Content-Disposition', 'inline; filename=' . $media['name']);
538 …$mime .= $this->wrappedHeaderLine('Content-Disposition', 'attachment; filename=' . $media['name']);
540 $mime .= MAILHEADER_EOL; //end of headers
541 $mime .= chunk_split(base64_encode($media['data']), 74, MAILHEADER_EOL);
545 return $mime;