On the Josephson effect between superconductors in singlet and triplet spin-pairing states