I was asked to put a button on the intranet maps pages that would enable users to click on it and email the whole page. Is this possible? I do not have any idea on how to do this so I will appreciate any input.
You won't be able to do it just by placing a button there.
I'm assuming you aren't talking about something as simple as emailing the actual URL (since surely this would not work outside the intranet).
I imagine you could create an email form where you typed in the details (to, from, subject and content) and clicking a button sent the email and along the way attached some inline HTML to the message body. This would mean that they couldn't use their standard email client to do it - and would have to use the special form on the intranet site).
It would also require some server-side coding to process the email details and add in the HTML to the message body before sending it.
There are likely to be other suggestions. Maybe providing a linked PDF of the page that you encourage users to save locally and drag into emails they create would suffice.
You can then set the href so that the reciepent email gets filled from a textbox maybe?
Not sure of your purpose.
ps. be aware that outlook express will crash, if the body exceeds 456 chars in length, but you can simply shorten the text.
To get the text to send, you could maybe do:
var body = document.getElementById('myWebContent').innerHTML.substring(0,255)+'...\n\nRead the article here: '+document.URL;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.