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: It's A Boy, And A Girl! 2 More Giraffes Born At Fort Worth Zoo

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.

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.

READ MORE: Passenger Killed, Driver Injured After Rollover Crash In McKinney

Over time the letters became more violent and threatening.

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

MORE NEWS: Oklahoma Shootings & Carjacking Suspect Lee King Arrested In Dallas

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