smart card pin generation and email