Phase-dependent transport in thermally driven superconducting single-electron transistors