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)
email body url at outlook (not working)
last parameter ×tamp is replaced with xtamp, due to which url is inaccessible.
Please help me in resolving this issue.
Solved! Go to Solution.
Hi @shya ,
In & timestamp request param since & times is getting treated as HTML character (x), Can you please try passing it like below
else if the url works with changing request parameter order, we can pass timestamp as first param.