Wednesday, July 3, 2013

Adding an Email Link in SharePoint site page

There was a requirement raised by one of my user to add Email lnk to the SharePoint site page, I followed below steps to achieve this
 
Add Content Editor Web Part on the page and in source editor insert following code
<a href="mailto:abc@xyz.com">Email Us</a>
or 
open a site page in SharePoint Designer, select the location where you have to put the link and then insert above code
or 
if you want users to directly open email link on a page when they click on "Email Us / Contact Us" button then assign "OnClick" event to Contact Us button / tab with above code 
<INPUT TYPE="button" VALUE="Email Us" onClick="parent.location='mailto:abc@xyz.com'">

hope this helps

No comments:

Popular Posts

Disclaimer

The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.