Love letters and phone calls helped land a prison officer behind bars.