Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:37:07+00:00 2026-06-16T03:37:07+00:00

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

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:37:08+00:00Added an answer on June 16, 2026 at 3:37 am

    Assuming that you’re on JSF 1.2 or newer, you can just use the very same HTML code in a JSF page.

    <a href="mailto:me@domain.com?subject=Sample subject&body=test&cc=cc@domain.com">Send mail</a>
    

    If you intend to prefill it based on values form a JSF form, then you need to send a redirect to exactly that URL.

    public void submit() throws IOException {
        // ...
    
        ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
        externalContext.redirect(String.format(
            "mailto:me@domain.com?subject=%s&body=%s&cc=cc@domain.com",
                URLEncoder.encode(subject, "UTF-8"),
                URLEncoder.encode(body, "UTF-8")));
    }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code: corresponding function does not executed when clicked <body onload=initialize('2.44','12.331') onunload=triggerUnLoad()> <select> <option onclick=initialize('2.44331','2.442211')>-sel
I have placed the corresponding code at http://cssdesk.com/QSwDG The sprite (referenced as 'circle.png' in
How to find corresponding WMI/COM object for any given Windows Registry key? Is there
I am trying to find the corresponding code to the buttons on the top,
My client wants corresponding sql queries of all ActiveRecord query which using in the
Is there a corresponding X mark to ✓ ( &#x2713; )? What is it?
Which is the corresponding Thrift type for: an Erlang tuple (I can imagine it's
What is the corresponding Java code for this piece of C# code? public static
Scenario: UITabBarController has three tabs corresponding to each of three view controllers which are
Im trying to get the corresponding title to the given ID using the code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.