javax.mail truncated url

O

Oliver Wong

ph0ngwh0ng@[email protected] said:
Hi!

I use javax.mail to send http mails that include urls. On some mail
clients, including Lotus iNotes, urls contained in the mail are
truncated. For example:

http://www.crappysite.com/index.html?param1=foo&param2=bar

becomes

http://www.crappysite.com/index.html?param1

Encoding in the email is set to "quoted-printable". I tried to set it
to "base64" but it didn't resolve the problem.

You need to escape the equals character. Quoted Printable and Base 64
are two different formats that coincidentally both treat the '=' character
specially.

- Oliver
 
R

Roedy Green

O

Oliver Wong

ph0ngwh0ng@[email protected] said:
Ok. Like that:
[URL snipped]

Damn... Next time warn me that the link is not work safe. =P I thought
you had posted the code there and wanted me to take a look at it to verify
that it was correct.

but to answer your question, yes, if that works, you can do that, but
that's not the standard way of escaping the '=' character in either
encoding. If you're gonna go with Base64, it's described in RFCs 1421 and
2045.

http://www.ietf.org/rfc/rfc1421.txt

http://www.ietf.org/rfc/rfc2045.txt

- Oliver
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top