Infections or vaccines can occasionally stimulate an autoimmune attack on the heart.