LOS ANGELES (AP) — Sandra Bullock awoke early the morning of June 8 to find an intruder in her home.

She didn’t know it at the time, but the man had lurked outside her gates for several days, writing in a spiral notebook about his obsession with the Oscar-winning actress. He had jumped her fence and rang her doorbell for 10 to 15 minutes before entering her home through a sunroom door.

READ MORE: Sigma Nu Fraternity At USC Suspends Member At Center Of Sexual Assault Allegations

Bullock got a glimpse of him as he walked past her bedroom and toward her attic, giving the actress an opportunity to seal herself behind a security door, hide in a closet, and call police.

Details of the 50-year-old actress’ ordeal were revealed during a hearing Thursday for Corbett that ended with a judge determining he should stand trial on stalking, burglary and other felony charges. Corbett’s attorneys deny their client wanted to hurt Bullock and say they are hoping to resolve the case and get their client mental health treatment.

The items presented in court during a hearing this week and released on Friday include a two-page letter Corbett wrote to the Oscar-winning actress the day before he entered her home.

According to the Oscars' website, actress Sandra Bullock wore this white Oscar de la Renta design to the 76th Annual Academy Awards at the Kodak Theater on February 29, 2004 in Hollywood, California.  (credit: Vince Bucci/Getty Images)

Once Bullock locked the door to her bedroom and got into the closet, she dialed 911. Over the next 15 minutes, she guided police through the gates of her home and led them to her location, opening the door only after confirming with a police dispatcher that officers had secured the home.

Bullock’s fear is evident on the call — she was breathing heavily and sounded near tears at points. Although she saw only one man, Bullock heard what she thought were two voices. About three-and-a-half minutes after calling police, Bullock heard a new noise.

“I hear them,” Bullock said. “I hear someone banging on my door.”

Police were already on their way, and a dispatcher assured the actress they were coming with lights flashing and sirens blaring. “Thank you. Thank you. Thank you,” the actress responded.

READ MORE: USC Places Sigma Nu Fraternity On Interim Suspension After Reports Of 'Possible Drug-Facilitated Sexual Assaults,' Students Protest In Support Of Victims

“You’re doing good,” the dispatcher told Bullock about six minutes into the call.

“Thank you,” Bullock said, letting out a nervous laugh.

The actress thanked the dispatcher 10 times during the call.

When he was arrested, police found Corbett with a two-page letter professing his love for Bullock that was apparently written the day before, about 20 hours before his arrest.

The letter makes clear Corbett has been watching Bullock, commenting on her comings-and-goings. “You could have had me today however you chose other people over me,” the letter opens. “I’ll be around as you know.”

After his arrest, police reviewed Bullock’s surveillance footage and saw Corbett outside the actress’ gate on each of the three days before he hopped the fence.

The letter was signed, “Always and forever, Love, your husband.”

Police also found a spiral bound notebook with 25 pages of writings commenting on Bullock, her life and Corbett’s perceived relationship with her.

MORE NEWS: One Crew Member Killed, Second Wounded After Alec Baldwin Discharges Prop Gun On Movie Set In New Mexico

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)