1

I am trying to get a mailto link working, but I'm having issues with lotus notes.

My link: <a href="mailto:?subject=mySubject&body=myBody">Link</a>

What happens is that the following appears in the subject of the email: mySubject&body=myBody

It doesn't seem to recognize the &body=

Any ideas?

Thanks, Chris

Chris Allinson
  • 1,837
  • 2
  • 26
  • 39

4 Answers4

2

I have universally solved the issue.

The actual reason things were getting messed up is that in the body of my email I had a link. It contained a query string (for example: http://www.aaa.com/index.php?date=xxx&value=yyy)

This & in the link caused the issue!!! It seems that lotus notes explodes/splits the mailto string differently than outlook, and this extra ampersand was not understood.

The solution was to encode the query string so there were no &'s appearing in the body!!!

e.g. <a href="mailto:?subject=mySubject&body=myBody%0A%0Ahttp://www.aaa.com/index.php?SxgftrTr65bfi">Link</a>

This works in both lotus and outlook!

NOTE: SxgftrTr65bfi would be decoded on the server side!

-Chris

Chris Allinson
  • 1,837
  • 2
  • 26
  • 39
1

Use ? instead of & to mark the start of parameters for the mailto link.

See this duplicate question: mailto lotus notes issue with mail toaddress

Community
  • 1
  • 1
Per Henrik Lausten
  • 21,331
  • 3
  • 29
  • 76
  • This solution very specific to lotus notes and does work! But, I have solved the issue universally ... [see my answer below]. – Chris Allinson Feb 13 '13 at 16:10
0

If you have an older version, you may be hitting a bug:

http://www-01.ibm.com/support/docview.wss?uid=swg21087914

Ken Pespisa
  • 21,989
  • 3
  • 55
  • 63
0

I ran into a similar problem, where Lotus notes did not like either question marks (?) or ampersands (&) in the body of an email. Rather than using server-side processing, you can simply replace all question marks in and ampersands with their hex code equivalent.

Use %3F for question marks, and %26 for ampersands, and you should be good to go.

the3seashells
  • 105
  • 1
  • 2
  • 6