Families "absolutely stunned" by discovery of messages written by soldiers en route to France, one who later died in battle.