Solved

Button for users to email themselves

Posted on 2011-09-02
7
165 Views
Last Modified: 2012-05-12
Dear Experts,

I am trying to create an HTML button to allow a user to email themselves a particular link (this link will be hard coded into the code)

The email address to send the email is basically the user's network name

Can anybody help?
0
Comment
Question by:correlate
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:ImaCircularSaw
ID: 36472668
Check the mailto syntax:

http://www.ianr.unl.edu/internet/mailto.html

As for gettintg the right content into the link, what webhsite is it and how do they access it?  Obviously, you'll need something to query for the user's details.  Is it an authenticated intranet?
0
 

Author Comment

by:correlate
ID: 36472684
The Website is a Sharepoint 2010 Intranet, it is an authenticated intranet
0
 
LVL 10

Expert Comment

by:ImaCircularSaw
ID: 36472701
In which case, you could do two things, you could write a SharePoint webpart that gets the user's account details.  You could also use some javascript on the page to get the content of the top-right control which has the user's name in and use that to construct an email address etc.

Is the email address similar to the following:

<firstname>.<lastname>@company.com
<initial><lastname>@company.com

I'll see if I can fine some code I used before to do something similar.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 10

Accepted Solution

by:
ImaCircularSaw earned 500 total points
ID: 36472729
Actually, check out this link:

http://stackoverflow.com/questions/5358035/sharepoint-get-current-user-attribute

Looks like some really good jQuery stuff you could use to get SP parameters.  Hope this helps!
0
 
LVL 10

Expert Comment

by:ImaCircularSaw
ID: 36472734
http://www.learningsharepoint.com/2011/05/11/get-current-loggedin-user-in-sharepoint-using-javascript/

This would also work as long as you can manipulate it to construst an email address from the information retrieved.
0
 

Author Comment

by:correlate
ID: 36473174
Hi Thanks for this,

I have tried using a work flow in sharepoint to achieve this, but couldnt find a way of starting the workflow when a user simply clicks either a field or a button.

I'm also wading my way through the Stackoverflow link
0
 

Author Closing Comment

by:correlate
ID: 37597018
Many thanks for this - the project went on hold for a bit and when it came live again I revisited this & got it to work
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now