What is the corresponding JSF code for
<a href="mailto:me@domain.com?subject=Sample subject&body=test&cc=cc@domain.com">Send mail</a>
which opens Outlook mail box to the user with the mail template prefilled?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that you’re on JSF 1.2 or newer, you can just use the very same HTML code in a JSF page.
If you intend to prefill it based on values form a JSF form, then you need to send a redirect to exactly that URL.
Please note that this doesn’t necessarily prepare the mail in Outlook. It merely prepares the mail in client’s own default mail client, which may not be Outlook per se. It may for instance be Thunderbird or even Gmail. Also note that you have no control over that part.