How to determine when Sun/Moon is aligned to two location on Earth's surface?
The Photographers Ephemeris is a very nice tool to give you the direction and time of both Moon and Sunset and -rise, made for exactly that purpose: plan and time shots to be at the right place and time for an awesome scenery.
Other programmes and tools to tell you rise and set times are

Stellarium
heavens above
time and date