added replacement email class to accomodate for broken file attachements in the core email class