Creating an Email button

M

Marc Dimmick

I have created a help desk workspace and when logging a call I get the
details of the person who is logging the call. I capture the email address.
what I am wanting to create is an email button so the help desk can click on
email button and an email is raised with the email address which was
collected.

Can anyone point me the right direction.

--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 
H

Hugh Pyle [MSFT]

In Groove V3.1 there's a SendEmail() function which lets your script send
email. Due to some security concerns with the implementation, this function
is removed from Groove 2007, so I don't recommend you use it in any forms
(even in V3.1 forms).

An alternative is to do something like this: if you have a text field
MessageSubject and another text field Email containing the recipient's
address, this will launch your user's email client ready to send a message
with the given subject:

function MySendEmail()

{

var sSubject = GetHTMLFieldValue("MessageSubject");

var sAddress = GetHTMLFieldValue("Email");

var sURL = "mailto:" + sAddress + "?subject=" + escape(sSubject);

GetApp().LaunchOrNavigateToURL(sURL,false);

}

Hope that helps -

--
Hugh Pyle / Program Manager / Microsoft Office Groove
http://blogs.msdn.com/hughpyle/

This posting is provided "AS IS" with no warranties, and confers no rights.


in message
news:[email protected]...
 
M

Marc Dimmick

This is great, thank you. Just one question what does the escape word do in
the syntax? and I am including a body what is the syntax to introduce a
carrage return in the email I have the issue description and then comments.
I am wanting to separate the two within in the body.

--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 
M

Marc Dimmick

I have created the following function based on your suggestion. :)

function HDResponseEmail()
{
var sAddress = GetHTMLFieldValue("MemberEmail0");
var sHRID = GetHTMLFieldValue("ID");
var sHRTitle = GetHTMLFieldValue("Title");
var sHRDetails = GetHTMLFieldValue("Detailed_32Description");
var sHRComments = GetHTMLFieldValue("Comments");
var sSubject = sHRID + " - " + sHRTitle;
var sBody = sHRDetails;
var sURL = 'mailto:' +sAddress+ '?subject=' +escape(sSubject)+ '&body='
+sHRDetails+ " " +sHRComments;
GetApp().LaunchOrNavigateToURL(sURL,false);
}

The email works but I dont seam to beable to get the body text to display.
Any assistance would be appreciated.


--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 
M

Marc Dimmick

I have updated the code to

function HDResponseEmail()
{
var sAddress = GetHTMLFieldValue("MemberEmail0");
var sHRID = GetHTMLFieldValue("ID");
var sHRTitle = GetHTMLFieldValue("Title");
var sHRDetails = GetHTMLFieldValue("Detailed_32Description");
var sHRComments = GetHTMLFieldValue("Comments");
var sSubject = sHRID + " - " + sHRTitle;
var sBody = sHRDetails+ " " +sHRComments;
var sURL = 'mailto:' +sAddress+ '?subject=' +escape(sSubject)+ '&body='
+sBody;
GetApp().LaunchOrNavigateToURL(sURL,false);
}

--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 
M

Marc Dimmick

I have now got the email button to work. The issue I found was the material
I wanted to put in the email was rich text. when I changed the field to
multiline text it worked. My question now is can I import rich text and
convert to plain text?


--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 
M

Marc Dimmick

I have the carriage return working and when I click on the email button the
alert box appears with the text moved down, but when I click yes to continue
the email has the text following straight after. I used the \n command which
I understand is the carrage return. any suggestions?

--

Regards
Marc Dimmick

"The best way to predict the future is to create it" - Dr.Peter F. Drucker
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top