I get an Invalid parse, syntax error. It says invalid T_ENDIF on line 800.
Any ideas?
I think when you removed some of the code you removed too much. You should just be removing the line:
$email->send($this->getEmail(),$subj,$body,$file);
It sounds as if your "endif;" is missing.