Thanks you for your screen shot.
For Mail issue :
I also checked it after changing version 8.0 to 7.3 it is working fine and both headers are same
and using same mail function from same line of code.
on 7.3 it is using the mail header which i passed but on 8.0 it is not using it.