It's likely you are thinking of the 2002 Lifetime movie "Andrea Yates," which dramatized her story and featured actress Angela Bettis in the lead role. This movie, while inspired by her case, is a fictionalized account and Andrea Yates herself was not involved in its creation.