Michelle Schiffer, 24, was sentenced to eight years in jail for having an inappropriate sexual relationship with a 15-year-old student on Thursday

The Texas teacher who had sex with a teenage student she met up with at a local Chick-fil-A has been sentenced to eight years in jail.

Michelle Schiffer, 24, was sentenced to eight years in prison for having an inappropriate sexual relationship with a 15-year-old student on Thursday.

The history teacher at Cypress Springs High School was accused of having sex twice with her student in 2017.

On one occasion she met up with the student from her school at a local Chick-fil-A then they went to a friend's house at the 7200 block of Barker Cypress for sex.

On another day she picked up the student in a park, they smoked cannabis, then had sex in her car, according to KHOU.

She pleaded guilty in court in May.

'Michelle is prepared to serve her sentence and hopes the complainant and his family can forgive her,' her attorney Grant Scheiner said on her sentencing.

'She has a scarlet letter that’s going to last the rest of her life. And that is part of the punishment,' he added.

They had sex on two occasions. On one they met up at a local Chick-fil-A in Cypress, Texas (stock image)

Schiffer originally met the boy while teaching him at Cypress-Springs High School (stock)

Schiffer originally met the boy while teaching him at Cypress-Springs High School.

The alleged improper relationship was reported to the principal, Cheryl Henry, by an anonymous student.

Her friends and family said she suffers depression during last month's hearing.

Schiffer said she stopped taking her medication prior to meeting up with the student.

But prosecutors say she was sending text messages to other students, including nude topless photos, according to the New York Post.

'This isn’t a heat-of-the-moment thing. This is over a series of months with different students,' prosecutor Keaton Forcht said.

Schiffer was placed on administrative leave when her relationship with the student was revealed and later fired.

Schiffer could have faced up to 20 years in prison with the plea deal.