code: def attach(self, filename, filetype="txt"):
  		
  		shutit = self.shutit
  		host_path = '/tmp'
  		host_fn = shutit.get_file(filename, host_path)
  		if self.config['shutit.core.alerting.emailer.compress']:
  			filetype = 'x-gzip-compressed'
  			filename = self.__gzip(host_fn)
  			host_fn = os.path.join(host_path, os.path.basename(filename))
  		file_pointer = open(host_fn, 'rb')
  		attach = MIMEApplication(file_pointer.read(), _subtype=filetype)
  		file_pointer.close()
  		attach.add_header('Content-Disposition', 'attachment', filename=os.path.basename(filename))
  		self.attaches.append(attach)
docs: Attach a file - currently needs to be entered as root (shutit)
  
  		Filename - absolute path, relative to the target host!
  		filetype - MIMEApplication._subtype