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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:37:50+00:00 2026-06-11T21:37:50+00:00

My web application is installed on many customer servers and the app needs to

  • 0

My web application is installed on many customer servers and the app needs to send emails via SMTP. Email smtp server is configured by the customer via a text (Properties) file.

I am having trouble deciding which settings should be included in the file. For some servers it is enough to let customer specify the following:

 mail.smtp.host = 
 mail.smtp.auth = 
 mail.smtp.user =
 mail.smtp.pass = 
 mail.from      = 

But which settings will cover vast majority of servers, so I have no worries that some setting will be missing?

  • 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-11T21:37:51+00:00Added an answer on June 11, 2026 at 9:37 pm

    An obvious approach would be to look at other mailers like Thunderbird or Outlook and see what configuration options they provide.

    You definitely need an option that controls the use of SSL, which has three values:

    • Make a plain text connection
    • Make a plain text connection and then switch to an SSL connection using the STARTTLS command
    • Make an SSL connection to start with

    These correspond to various settings of the mail.smtp.ssl.enable and mail.smtp.starttls.enable properties.

    If you haven’t already, you should look at all the properties described in the javadocs for the com.sun.mail.smtp package.

    mail.smtp.auth should always be set to true.

    That should get you started.

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

Sidebar

Related Questions

My web application is installed on many customer servers. Since the app needs to
I was wondering what do i need to get my asp.net web application installed
I created a set up project and installed a web application on my local
I just installed Graphite & statsd to get some statistics for my web-application. It
If web application and SQL Server are on different machines(both running Windows) on intranet,
I have a web application where many components are registered using .LifestylePerWebRequest() , now
I am developing a new revolutionary web application for the enterprise market. Sure, many
I would like to develop a web application in Erlang, so I installed Yaws
I just installed the Google Eclipse plugin and created my first test Web Application
In my production environment I have several Web applications installed in the same machine.

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.