Board Thread:Skyrim/@comment-121.216.222.34-20130815062046/@comment-6881629-20130815094014

Yes Sun Damage does work against anyone but against undead it also does three times the damage (the UESP page here goes into more detail). I think the sun rays are the same.