Hi All,
I have a requirement. I got a
JSF page(parent page). When a button(say SEND EMAIL) is pressed, an email window (OUTLOOK) will be displayed as a popup. I have to populate whatever the text data of parent page as the body of the mail.
I am using mailto method : eg :
Here is my code:
==============
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest origRequest = (HttpServletRequest) context.getExternalContext().getRequest();
context.getExternalContext().redirect(String.format("mailto:"+mailTo+"?subject=" + subject +"&body=" + body + "&cc="+mailCc+""));
till here it is fine..
My problem is body part is not getting breaks.
I have tried \n, \t, \r , <br>, <br></br> etc.. what ever stuff i found in google..
for eg my email body looks like below.. it consists of url link also.
====================================================
Hi,
This is to inform you etc... ,
Please follow this Hyperlink link to navigate to your page.. etcc.
regards..
======================================================
Any body help me.