public function __construct() { parent::__construct(); }
/** * Adds a file to the current mail * If no mimetype is given, the system tries to lookup the mimetype itself. * Use $bitInline if the attachment should not appear in the list of attachments in the mail client. * Inline-attachments can be used in html-emails like <img src="cid:your-filename.jpg" /> * * @param string $strFilename * @param string $strContentType * @param bool $bitInline * * @return bool */ public function addAttachement($strFilename, $strContentType = "", $bitInline = false) { if (is_file(_realpath_ . $strFilename)) { $arrTemp = array(); $arrTemp["filename"] = _realpath_ . $strFilename; //content-type given? if ($strContentType == "") { //try to find out $objToolkit = new class_toolkit(); $arrMime = $objToolkit->mimeType($strFilename); $arrTemp["mimetype"] = $arrMime[0]; } //attach as inline-attachment? $arrTemp["inline"] = $bitInline; $this->arrFiles[] = $arrTemp; $this->bitFileAttached = true; $this->bitMultipart = true; return true; } else { return false; } }
/** * Constructor * */ public function __construct() { //Calling the base class parent::__construct(); }