NASHVILLE, Tennessee (CBSDFW.COM/AP) – A federal judge has sentenced an Austin, Texas, man to 30 months in prison after he pleaded guilty to stalking and sending threatening letters and emails to pop star Taylor Swift’s former record label.

According to records filed in federal court, Eric Swarbrick was given the sentence during a hearing Wednesday in Nashville.

READ MORE: 19-Year-Old Tello Hernandez Faces Intoxication Manslaughter Charge Following Fatal Crash 

Eric Swarbrick (credit: Metro Nashville Police)

The terms of the sentence, which also includes three years of supervised release, were agreed on by prosecutors in a plea agreement that Swarbrick entered in 2019.

READ MORE: Homeowner Terry Duane Turner Charged In Slaying Of Motorist Adil Dghoughi In His Driveway

The complaint said Swarbrick sent more than 40 letters and emails to Big Machine Label Group in 2018, asking the CEO to introduce him to Swift.

Over time the letters became more violent and threatening.

On three occasions Swarbrick drove to Nashville to personally deliver them.

MORE NEWS: Dallas Neighborhood Crime Spike Has Many Questioning, 'Is Uptown Going Downhill?'

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)