Solved

Is there a way to covert mixed upper and lowercase information pulled from Windows Active directory to all Uppercase before Displaying it.

Posted on 2015-01-23
4
94 Views
Last Modified: 2015-01-23
We trying to make a signature for our email with HTML. We pull the attributes from Active Directory such as, Name, Title, address, City, state and Postal code. It works just fine. But unfortunately the information with AD is a mixture of Upper and lower case text for these attributes. Is there way in HTML to change attributes value to all uppercase before displaying it the signature.


I know we could probably run a script to change all these attributes in AD to uppercase, but really don't want to do that unless there is no other way.

Thanks
Jeff McCormick
0
Comment
Question by:mrsnetops
  • 2
  • 2
4 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 40566522
how are you pulling the info from AD? You must be using some sort of server side language, no? if so, chances are it has a built in function to do what you're asking
0
 

Author Comment

by:mrsnetops
ID: 40566549
This is example of our Signature html code. We do user third party to insert our signature into our email. The code with the MC in front is from them. I did call them and ask them but they said the couldn't , and suggested we check to see if HTML could do it.


<html><head></head><body style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, sans-serif; font-size: 9px; color: #6B6B6B;"><mc type="comment"><br />


<hr style="border: 1px solid #d7d7d7; width:100%; align: left; margin-bottom:18px;" />
<mc type="clickimage" code="imagebottom">
<p><span style="font-weight:bold; color:#006A9A;"><mc type="variable" source="from" attribute="displayName"></span><br />
<span style="color: #6B6B6B"><mc type="variable" source="from" attribute="title"></span></p>
<p> <span style="font-weight:bold; color:#006A9A;">OURCOMPANY</span><br />
<mc type="variable" source="from" attribute="streetAddress"><br />
<mc type="variable" source="from" attribute="l"> <mc type="variable" source="from" attribute="st"> <mc type="variable" source="from" attribute="postalCode"></p>
<span style="font-weight:bold; color:#006A9A;">OFFICE</span> <mc type="variable" source="from" attribute="telephoneNumber"> <span style="font-weight:bold; color:#006A9A;"><mc type="variable" source="from" attribute="otherMobile"></span> <mc type="variable" source="from" attribute="mobile"><br />
OURCOMPANY.COM<br /><p></p>
<p><em>This is the Disclaimer.</em></p>

<mc type="previouscomment">


</body></html>
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 40566571
you may be able to add a css class called text-transform to your page that';; capitalize everything for you

http://www.w3schools.com/cssref/pr_text_text-transform.asp

<style>
     mc { text-transform: uppercase; }
</style>
0
 

Author Comment

by:mrsnetops
ID: 40566772
Okay, we got it figured out. Using a variation of yours. Thanks for the help.

<span style="text-transform: uppercase; font-size: 12px;">
<hr style="border: 1px solid #d7d7d7; width:100%; align: left; margin-bottom:18px;" />
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question