Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to send url in email without encoding
    primarykey
    data
    text
    <p>I am using Amazon Simple Email Service java API to send mail to receivers. I am sending URL in mail body inside tag. My use case demands the user to double click on the URL received to prompt some action. (like confirmation mail)</p> <p>Problem is the url gets encoded while receiving. On double clicking it gives page not found (404) error.</p> <p><strong>Original URL</strong> : <a href="http://something.com/confirm/email=abc@hotmail.com&amp;regKey=somekey&amp;confirm=true" rel="nofollow">http://something.com/confirm/email=abc@hotmail.com&amp;regKey=somekey&amp;confirm=true</a> When i double click on this URL on mail, the link is opened in address bar as : <a href="http://something.com/confirm/email=abc%40hotmail.com%26regKey=somekey%26confirm=true" rel="nofollow">http://something.com/confirm/email=abc%40hotmail.com%26regKey=somekey%26confirm=true</a></p> <p>I am using <strong>AmazonSimpleEmailServiceClient</strong>. Code is below :</p> <pre><code> SendEmailRequest request = new SendEmailRequest().withSource(sourceAddress); String confirmationURL="http://something.com/confirm/email=abc@hotmail.com&amp;regKey=somekey&amp;confirm=true"; List&lt;String&gt; toAddresses = new ArrayList&lt;String&gt;(); toAddresses.add(toEmail); Destination dest = new Destination().withToAddresses(toAddresses); request.setDestination(dest); Content subjContent = new Content().withData("Confirmation Request"); Message msg = new Message().withSubject(subjContent); // Include a body in both text and HTML formats Content textContent = new Content().withData("Dear please go to the following URL:"+ confirmationURL+"\n\n"); Content htmlContent = new Content().withData("&lt;p&gt;Dear please go to the following URL:&lt;/p&gt;"+ "&lt;p&gt;&lt;a href=\""+confirmationURL+"\"&gt;"+confirmationURL+"&lt;/a&gt;&lt;/p&gt;"); Body body = new Body().withHtml(htmlContent).withText(textContent); msg.setBody(body); request.setMessage(msg) </code></pre> <p><strong>UPDATE</strong></p> <p>Just found, this problem is occurring only when recipient email is in <strong>hotmail.com</strong>. Why microsoft always have to do something differently ? Somebody help !</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload