You should note that the User Attribute in Active Directory is case sensitive. As such, "EMAILADRESS" attribute is different than "emailAddress".
For example, you want to set the header variable EMAILADRESS with the content of the user's attribute name emailAddress.
If you set the attribute name as "EMAILADRESS", it will NOT work (the header variable will be empty).
Ā