Solar exposure - a timely topic since June 21 marks the first day of summer - is the most important way people acquire vitamin D. But certain foods, including egg yolks and oil-rich fish like mackerel, salmon, sardines and herring contain the nutrient.