Lines Matching defs:mime
79 * @param string $mime Mimetype of the attached file
83 public function attachFile($path, $mime, $name = '', $embed = '')
91 'mime' => $mime,
101 * @param string $mime Mimetype of the attached file
105 public function attachContent($data, $mime, $name = '', $embed = '')
108 [, $ext] = explode('/', $mime);
114 'mime' => $mime,
131 // get file and mime type
133 [, $mime] = mimetype($media);
138 $this->attachFile($file, $mime, '', 'autoembed' . $embeds);
451 * Prepare the mime multiparts for all attachments
455 * @return string mime multiparts
459 $mime = '';
473 $mime .= '--' . $this->boundary . MAILHEADER_EOL;
474 $mime .= $this->wrappedHeaderLine('Content-Type', $media['mime'] . '; id="' . $cid . '"');
475 $mime .= $this->wrappedHeaderLine('Content-Transfer-Encoding', 'base64');
476 $mime .= $this->wrappedHeaderLine('Content-ID', "<$cid>");
478 $mime .= $this->wrappedHeaderLine('Content-Disposition', 'inline; filename=' . $media['name']);
480 $mime .= $this->wrappedHeaderLine('Content-Disposition', 'attachment; filename=' . $media['name']);
482 $mime .= MAILHEADER_EOL; //end of headers
483 $mime .= chunk_split(base64_encode($media['data']), 74, MAILHEADER_EOL);
487 return $mime;