Gene Young / Splash News 1 / 15
Gene Young / Splash News 1 / 15

After splitting with husband Tony Parker in late 2011, Eva Longoria stopped taking care of herself. In the April 26 episode of "The Dr. Oz Show," the 38-year-old "Desperate Housewives" alumna explains how her divorce affected her well-being.

Longoria describes the months after their breakup as "the time I got the most compliments, because I was so skinny. I was not eating. I was depressed. I was sad. My diet was coffee."

PHOTOS: 'Desperate Housewives' cast, then and now

The star continues, "People kept saying, 'You look amazing. Divorce agrees with you. And I was like, 'I don't feel good. I have no energy.' I didn't know I was depressed. I mean, I knew it was a sad moment in my life, but I wouldn't categorize myself as depressed."

PHOTOS: Eva Longoria's smokin'-hot post-split style

The self-described optimist realized something was wrong, so she went to her doctor to get some blood tests done. "I was just depleted of every vitamin," Longoria recalled. "He said it's as if somebody took a straw and sucked everything out of your body. 'You don't have any iron and your liver's overacting.' It was like all these things were physically wrong with my body, so I had to saturate with vitamins and kind of get back on this track."

PHOTOS: A-list women who've been cheated on

Since receiving her wakeup call, the single star has adopted a healthier diet. "I cut out all sugar. Anything that turns into sugar is sugar. I love a soda, I'm not a chocolate candy person, but, I like pasta in anything," Longoria said. "For about three months, I did a really strict no-sugar diet, and I had more energy than I've ever had. My palate was different. Things tasted better."


Eva Longoria's bikini body in Rio

Celebs without makeup

Best and worst beach bods