<?php

$mail = new htmlMimeMail();

		$Attachment = $mail->getFile($FileName);
		$mail->setText(_('Please find attached Payslips From Evergreen Int(Fiji) Ltd Trading as Wormald Fire & Security and Guardforce Fiji. Autogenerated from E-Business ERP 2.0 Platform. Please do not reply to this email') );
		if ($manage == '0'){
		$mail->SetSubject(_('Payslip Week Ending-'.$enddate) );}

if ($manage == '1'){
		$mail->SetSubject(_('Payslip Month -'.$enddate) );}
		$mail->addAttachment($Attachment, $FileName, 'application/octet-stream');
		$mail->setFrom('Wormald Fire & Security <wormald@ebusinescloudservers.com>');
		$result = $mail->send(array($employeeemail));

?>