Correct issue with send mail not loading classes in correct order.