0

I want to display the details line by line, in an email message reply link body.

When a user clicks on the link in the email message, it is automatically populating with Subject, Body values. In that body I want to display the details line by line.

<apex:outputlink style="color:red" value="mailto:{!$User.email}?subject=Re: Test Subject &Body= select the send button to send email '<br>'  NOTE: Please do not modify this Email ">
                    Click here to respond for this email 
</apex:outputlink> 

Here it is displaying as enter image description here

I tried '
', '\r\n\r\n', '\n\r'.

But it didn't work for me.

I want to display it as. enter image description here Can you please provide any suggestions?

Thank you.

0

Use the below code for line break "%0d%0a"

<apex:outputlink style="color:red" value="mailto:{!$User.email}?subject=Re: Test Subject &Body= select the send button to send email%0d%0aNOTE: Please do not modify this Email ">Click here to respond for this email </apex:outputlink> 
4
  • - Thank you. It worked. Is there a possibility to add images in email reply body. – anji reddy Jan 28 at 18:17
  • You can't bind an image with the body. – Atul Vekariya Jan 28 at 18:21
  • So you are saying that in the body we can't append header and footers right. – anji reddy Jan 28 at 18:22
  • I mean we can't pass any HTML tag with body parameter in mailto: – Atul Vekariya Jan 28 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.