Link in email is not working at Outlook however working for gmail | Community
Skip to main content
Level 2
Aug 22, 2021 7:20 PM UTC
Solved

Link in email is not working at Outlook however working for gmail

Hi Experts,

 

I have written an email functionality using org.apache.commons.mail api where I am passing a third party url as part of email body. Email functionality is working fine and recipients are able to receive the email. 

 

URL which is part of email body is appearing correct for gmail users however not for outlook users.

 

I suspected that it could be charset or contentType issue while setting the email, hence manually tried setting that value to UTF-8 for charset and text/html for contentType, still there is no luck.

 

email body url at gmail (working)

https://thirdpartdomain?mode=download&flatten_folders=true&signature=d5bfd947766840f834338d25b951f1d82d408daa&keep_derived=true&allow_missing=true&public_ids[]=3044615-center-1&skip_transformation_name=true&type=upload&target_public_id=353&target_format=zip&timestamp=1629658500

 

email body url at outlook (not working)

https://thirdpartdomain?mode=download&flatten_folders=true&signature=d5bfd947766840f834338d25b951f1d82d408daa&keep_derived=true&allow_missing=true&public_ids[]=3044615-center-1&skip_transformation_name=true&type=upload&target_public_id=353&target_format=zipxtamp=1629658500

 

last parameter &timestamp is replaced with xtamp, due to which url is inaccessible.

 

Please help me in resolving this issue.

 

Regards

Shya

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
abhi_entreAccepted solution
Level 2
Aug 23, 2021 6:58 AM UTC

Hi @shya ,

 

Faced the same problem. Solution is simple put your link in <a href ="url">click here</a> as it will automatically takes care of encoding.

 

Regards,

Abhi

4 replies

abhi_entreAccepted solution
Level 2
Aug 23, 2021 6:58 AM UTC

Hi @shya ,

 

Faced the same problem. Solution is simple put your link in <a href ="url">click here</a> as it will automatically takes care of encoding.

 

Regards,

Abhi

Translate
shyaAuthor
Level 2
Aug 23, 2021 7:00 AM UTC

Thanks Abhi.

 

Worked for me.

 

~Shya

Translate
Dipti_Chauhan
New Participant
Aug 23, 2021 6:16 AM UTC

Hi @shya 

 

&times means a multiplication sign. hence &times of &timestamp is being converted as x , so you end up seeing xtamp. Try encoding the & in front of timestamp with &amp;

 

Thanks

Dipti

Translate
Kishore_Kumar_
Level 9
Aug 23, 2021 3:05 AM UTC

Hi @shya ,

 

In & timestamp request param since & times is getting treated as HTML character (x), Can you please try passing it like below

 

&amp;timestamp=1629658500

 

else if the url works with changing request parameter order, we can pass timestamp as first param.

 

https://thirdpartdomain/?timestamp=1629658500&mode=download&flatten_folders=true&signature=d5bfd947766840f834338d25b951f1d82d408daa&keep_derived=true&allow_missing=true&public_ids[]=3044615-center-1&skip_transformation_name=true&type=upload&target_public_id=353&target_format=zip

Translate