Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory mail attribute

Status
Not open for further replies.

IAMINFO

MIS
Feb 21, 2002
62
0
0
US
Hello below is a line of vbscript that takes the mail attribute from Active Directory and displays it on an Active Server Page as the users name (someone@myworld.com)in a column.

Does anyone know the correct syntax that would, take the mail attribute and pass it to the mailto: command
my goal is to have all the names displayed in the colums as a hyperlink that will open the mail program and insert the users name.

Thanks for taking time to read this


Response.Write &quot;<TD>&quot; & _
adoRecordSet.Fields (&quot;mail&quot;) &&quot;</TD>&quot;

 
Hi IAMINFO,

Just insert your response in a standard &quot;mailto hyperlink&quot;.

<TD>
<a href=&quot;Mailto:<%response.write(adoRecordSet.Fields(&quot;mail&quot;)%>>
<%response.write(adoRecordSet.Fields(&quot;mail&quot;)%></a>
</TD>

Dont forget to start with %> and end with <% if this is in the middle of youre code.

// Wibbe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top