fix error attaching files when sending direct emails and only send emails to active users. gitkeep for empty directories