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 6692405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:51:50+00:00 2026-05-26T05:51:50+00:00

i am creating a web application using jsf and primefaces, and my question is

  • 0

i am creating a web application using jsf and primefaces, and my question is how to send an email through site’s contact form (i’ve done this using php before, very easily, but never using jsf). I have created form on contact.xhtml page, as well as bean class to support that, and all that form should do is to send bean’s data to a predefined mail (ie. gmail). I have also found several “tutorials” of how to send email using JavaMail, but nothing seems to work properly. The form itself, consists of name, email and message fields.

Can someone write how to do that, or give me a link. I would be very gratefull.

Do i need my site to be running on (online) server, or i can test it from localhost.

Thank you in advance.

  • 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-05-26T05:51:51+00:00Added an answer on May 26, 2026 at 5:51 am

    In very short:

    • make a <h:commandButton action="#{yourBean.send}"
    • make a managed bean annotated with @ManagedBean("yourBean") that has a send(..) method
    • get commons-email and read its short “User guide”; get a working smtp server (commons-email depends on JavaMail, so get that on the classpath as well)
    • in the send method use commons-email to send the email

    (You should go through a JSF tutorial to see how to gather the form parameters)

    Note that java is a bit more complex. “Send mail through JSF” isn’t a particularly good question. It consists of two questions:

    • how to have a form submitted with JSF (every tutorial explains that)
    • how to send email in Java in general
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a login system for a web application using PHP. My question
When I'm creating a user for my web application, an SMTP email (using ASP.NET's
I am creating a web application using Form Authentication of Asp.Net with C# and
I'm creating a web based application using Java Server Faces (JSF). I'm just wondering
I'm creating a quiz web application using PHP. Each question is comprised of a
I am creating a web application using zend, here I create an interface from
I am part of a team creating a web application using PHP and MySQL.
I am part of a team creating a web application using PHP and MySQL.
I am creating a mobile web application using asp.net. The application must support iPhone,
I am creating an application which involves so many web-service calls. I am using

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.