Research shows that sunlight boosts the effectiveness of T-cells, an integral part of the immune system. T-cells are a type of lymphocyte that recognizes and binds to foreign invaders, thereby rendering them harmless. This is an important new finding, which demonstrates another beneficial effect of sun—one that has no relationship to vitamin D.
The key player in this action is the blue-light spectrum of sunlight that stimulates hydrogen peroxide production. The hydrogen peroxide (HP) causes T-cells to move to the site of infection, and it (HP) is also involved in the killing of noxious bacteria. Dr. Gerard Ahern, one of the primary investigators, stated it in this way: “T cells, whether they are helper or killer, need to move to do their work, which is to get to the site of an infection and orchestrate a response. This study shows that sunlight directly activates key immune cells by increasing their movement.”
Also interesting is the fact that the skin has a large share of the total T-cells in humans, about twice the number circulating in the blood. Think about this magnificent body of ours! It is programmed to immediately respond to any invasions that may occur in the skin, and sun exposure, if we take full advantage of it, immediately accelerates the process. Then, when the t-cells are activated by the blue light, they can move rapidly to other body areas where they can be utilized.
Sun exposure has also been found to have an exceptionally important and positive effect on autoimmune diseases such as lupus, MS, rheumatoid arthritis and others, many of which have been found to associate with low solar radiation and vitamin D. In this case, a different type of T-cell, called a regulatory T-cell, attacks the body’s own tissue, mistaking it for a foreign invader, and causes severe damage. The mechanism of autoimmune disease prevention by sunlight may be the suppression of regulatory T cells, in a manner that impedes the immune system’s attacks on its own tissues. 
Sunlight is one of God’s (or Nature’s) greatest miracles. Be sure to receive your full contingent of wonderful, non-burning sun.
 Thieu X. Phan, Barbara Jaruga, Sandeep C. Pingle, Bidhan C. Bandyopadhyay, Gerard P. Ahern. Intrinsic Photosensitivity Enhances Motility of T Lymphocytes. Scientific Reports, 2016;6:39479
 Schwalfenberg GK. Solar radiation and vitamin D: mitigating environmental factors in autoimmune disease. J Environ Public Health. 2012;2012:619381.
ArtukovićM1, Ikić M, Kustelega J, Artuković IN, Kaliterna DM. Influence of UV radiation on immunological system and occurrence of autoimmune diseases. Coll Antropol. 2010 Apr;34 Suppl 2:175-8.
Marsh-Wakefield F, Byrne SN. Photoimmunology and Multiple Sclerosis. Curr Top Behav Neurosci. 2015;26:117-41.