Fixed run-time error for mailclient init.