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

Mailto problem

New Here ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

I am trying to add a email link to an address with an "&" in it. Unfortunately this has the result of deleting the remainder of the email address, so my email address H&S.feedback@companyname is contracted to just "H".

Any ideas how I can get around this?

Many thanks

Views

922

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
Community Expert ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

I don't think that the ampersand character is valid in an email address. Is it a proposed address or are you telling us it is in use?

Try the link below to check whether or not an address is theoretically valid.

http://www.quirksmode.org/js/mailcheck.html

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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
Contributor ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

You might want to try to encode the & as '&amp' in the mailto link, i.e H&ampS.feedback@companyname.

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
Enthusiast ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Peter,

quirskmode.org says mailcheck is outmoded.

Travis, Jane,

If &amp doesn't work, try
&

H&S.feedback@, etc.

Harvey

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
Explorer ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Are you inserting the ampersand with javascript? If so, you may have to use the hex value, %26.

mailto:H%26S.feedback@companyname

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
Advisor ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

If it is JavaScript, try this:

& amp;


Good luck,
Leon

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
New Here ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Thanks for all these suggestions, unfortunately none of them work!

As far as I'm aware this is a valid email address - but am checking it out.

Any other ideas?

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
Explorer ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

quote:

Originally posted by: JaneXYZ
Thanks for all these suggestions, unfortunately none of them work!

As far as I'm aware this is a valid email address - but am checking it out.

Any other ideas?

Is it possible for you to post the section of code that you're using to generate the email?

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
Community Expert ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

Jane

Having looked elsewhere it would seem the ampersand is valid for an email address. Look at wikepedia.

Sorry I can't help you more on this one.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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
Advisor ,
Dec 13, 2006 Dec 13, 2006

Copy link to clipboard

Copied

Each line in the JavaScript file must not have hard line breaks (carriage returns). The text can wrap if your Notepad window is too narrow, but you cannot hit Enter inside the statement itself.

If you want line breaks in the text you'll be inserting into the body of the message, use the "\n" (new line) as below:

var mailBody = '[Enter comments here] \n\nMy comments apply to this page: ' + location.href;

And you're sure you tried my previous hint (& amp;)?


Good luck,
Leon

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
New Here ,
Dec 14, 2006 Dec 14, 2006

Copy link to clipboard

Copied

Thanks for the help.

The email address has now been changed, removing the & so the problem has gone away.

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
Enthusiast ,
Dec 14, 2006 Dec 14, 2006

Copy link to clipboard

Copied

LATEST
Hooray for rational thought!.

H

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