A third sex scandal in two years has hit elite Brooklyn Technical HS with the ouster of a music teacher accused of having an “inappropriate relationship” with her male student, The Post has learned.

The married Marisa Cazanave, 33, and the teen both denied any sexual contact, but dozens of texts and e-mails found by the boy’s mom revealed the pair was in love and planned a rendezvous, the city’s Special Commissioner of Investigation reported.

In an May 7 e-mail to the teen, Cazanave gushed, “You make me unbelievably happy,” but agonized over their forbidden passion.

“I honestly cannot reason how spending your time with me and sneaking around instead of time with your friends seems like the better way to spend your free time,” she wrote.

The student replied the next day: “You feel like home and when I’m holding you in my arms time freezes and all of my worries and problems fade away for that moment.

“I know from the deepest part of me that this is real and that regardless of what happens you are the one for me . . . I love you.”

Confronted by his dad in the fall, the boy confided that Cazanave “was careful” and that their relationship was two months old, the SCI reported.

Phone records showed she and the boy spoke 145 times between 10 p.m. and 2 a.m., the SCI reported.

The student’s cellphone held 112 photos of Cazanave, 14 video clips of her, and 158 pages of texts between them. His mom found two photos of her son and the teacher together.

The mom turned over a text Cazanave sent the teen at 11:24 one night.

“Still not done with your stupid yearbook,” it read, “but now I’m too drunk, too sentimental and too in love with you to continue.”

In a Saturday exchange, Cazanave, who led the choral program, told the teen she would be free July 21-24.

“If you’re in town,” she wrote, “we may want to talk this week about seeing if we can plan to make one of those items on our list partially checked off.”

The boy replied, “I’m all yours.”

Cazanave, a Department of Education teacher for 12 years, with four at Brooklyn Tech, quit rather than face misconduct charges after the SCI concluded its probe in October.

While her resignation took effect this month, she did not return to school after the Christmas break.

“They hustled her out to avoid a scandal,” a staffer said. “It was all handled very quickly and quietly.”

Reached by The Post, Cazanave denied having sex with the boy.

“No, God no! That’s disgusting!” she cried. “I’ve never been inappropriate with any of my students.”

Asked about her invitation to meet him last July, she said it was innocent.

“We could go to Broadway shows, restaurants and museums,” she said.

The mother of two said her husband, a physician, advised her to resign to do “what’s best for my career, me and my children.”

In a prior Brooklyn Tech case, teacher Sean Shaynak, then 44, was busted in October 2014 on charges he sexually abused seven female students. He pleaded guilty to several crimes, including kidnapping and went to prison. The city paid $450,000 to settle lawsuits by five girls.

And last December, The Post reported that Brooklyn Tech aide Robert Sutton Jr., 23, was caught sending a girl a video of himself masturbating at the school.

Last month, Principal Randy Asher left the 5,500-student school, which he had led since 2006. He was assigned to run a pool of more than 1,300 teachers left without posts due to downsizing or discipline.