custom sendemail class