• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Variable in mailto link possible?

Guest
May 20, 2008 May 20, 2008

Copy link to clipboard

Copied

I was wondering, is it possible to add a RoboHelp variable to a mailto link?

I'm trying to include the topic title as the subject in a mailto link.

E.g.
<a href="mailto:support@company.com?subject=Variable">Feedback</a>

Thanks for your help.

Herman
TOPICS
Classic

Views

9.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 20, 2008 May 20, 2008

Copy link to clipboard

Copied

Hi Hermie3

Yes, this is possible to do. Hop over to my site and download my Tips and Tricks file for RoboHelp. Inside, I've outlined how to accomplish it.

You may download the file by Clicking here.

Once you get it (It's a compiled .CHM) crack open the Index and search for E-Mail.

Best of luck to you! Rick 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 20, 2008 May 20, 2008

Copy link to clipboard

Copied

Thanks a lot Rick. It works like a charm.

Thanks also for all these other tips & tricks.

Herman

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 21, 2008 May 21, 2008

Copy link to clipboard

Copied

> It works like a charm.

Except when the document title includes an ampersand (e.g. mailto:John@support.com?subject=Jack&Jill).

In Outlook 2003, the subject is interrupted after 'Jack' in Jack&Jill'.

I replaced '&' with &amp and %26, but this doesn't change a thing.

Any ideas how to escape the ampersand?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 21, 2008 May 21, 2008

Copy link to clipboard

Copied

Problem solved.

%26 works, but you have to enter it directly in html view. If you enter it through the script dialog it gets substituted with &.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 22, 2008 May 22, 2008

Copy link to clipboard

Copied

LATEST
Thanks again Rick for the link to the Tips&Tricks file.

BTW, I changed the code from your example a bit. This adjustment replaces ampersands in titles/url so that these are parsed correctly by email client:

function mailink()
{
document.write('<p><A HREF="mailto:support@company.com?Subject=');
// var temp = document.title; *//
var temp = document.URL;
// uncomment the line above and comment the line above it using // to switch to URL. *//
temp = temp.replace(/&/g,'%26');
temp = temp.replace(/&/g,'%26');
document.write(temp);
document.write('&body=Please do not alter the Subject line. It is used to help us identify the page you are reporting.">Feedback</A></p>')
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp