Ejemplo n.º 1
0
 /**
 		@brief		Add an attachment to the mail.
 		@param		string		$path		The path to the file to attach.
 		@param		string		$name		Optional name of the file, as visible in the mail.
 		@return		mail					This object.
 		@since		20130423
 	**/
 public function attachment($path, $name = '')
 {
     $mime_type = \plainview\sdk_broadcast\wordpress\base::mime_type($path);
     $this->AddAttachment($path, $name, 'base64', $mime_type);
     return $this;
 }