"My Heart Has a Mind of Its Own" was written by the songwriting team of Howard Greenfield and Jack Keller, and it's a Brill Building production through and through. Between the two of them, they wrote for such artists as Neil Sedaka, The Captain & Tennille, The Shirelles, Barry Mann, Paul Anka, Perry Como, and Tony Orlando, to name only a few. They also worked in television, producing the theme songs for the '60s TV series Bewitched
As explained in The Rolling Stone Illustrated History of Rock and Roll, Aldon Music was founded by Al Nevins and Don Kirshner (Al-Don, get it?), and became the base for what was to become the "Brill Building sound." Aldon had a rotating staff of songwriting teams; (Neil)Sedaka-(Howard)Greenfield were amongst the most successful and earliest of those. Aldon Music was actually located at 1650 Broadway, not in the Brill Building, but writers find it convenient to describe these New York City productions as the "Brill Building Sound," so that's how it's commonly known. For more on this, check out our interview with a lady who was part of that scene: the songwriter Toni Wine.