Steven MacMillan, 53, of Dalkeith, Midlothian, has been jailed after sending sick sexual messages to a 13-year-old girl which were eventually found by the child's mother