Swift, 22, was romantically linked to 34-year-old Mayer in 2009 after they collaborated on a song for his album Battle Studies, but neither of the stars confirmed the story.
Swift subsequently released a track called 'Dear John' and the harshly-worded lyrics prompted speculation she had written the song about her reported fling with Mayer, reported Ace Showbiz.
"It made me feel terrible. Because I didn't deserve it. I'm pretty good at taking accountability now, and I never did anything to deserve that. It was a really lousy thing for her to do," Mayer said.
He also said that Swift never consulted him about the track and it took him completely by surprise.
"I never got an email. I never got a phone call. I was really caught off-guard, and it really humiliated me at a time when I'd already been dressed down. I mean, how would you feel if, at the lowest you've ever been, someone kicked you even lower?
"I will say as a songwriter that I think it's kind of cheap songwriting. I know she's the biggest thing in the world, and I'm not trying to sink anybody's ship, but I think it's abusing your talent to rub your hands together and go, 'Wait till he gets a load of this," he added.