The Artima Developer Community
Sponsored Link

Java Answers Forum
Detecting SMTP Settings

2 replies on 1 page. Most recent reply: May 30, 2006 11:57 PM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Detecting SMTP Settings Posted: May 26, 2006 4:52 AM
Reply to this message Reply
Advertisement
I'm trying to write a tool to search the smtp settings for various
Email clients e.g. Outlook Express. Any ideas on how to go about this.

E.g. I want the String smtp setting.

Before one goes on a tangent about how this is not a Java Q. Let me
clarify.

I'm trying to do something like:

public class DetectSMTP{
    public static String retrieveSMTP(){
        String smtpSuggestion = "";
        //  I know how to do this - so bear with the pseudo code
        if(os == Windows){
            //  This is what I need help with
            FileReader fr = new FileReader(new File("ProbablySomeFileWhereOutlookKeepsItsSetttings"));
            loopIterator(run through lines in fr){
                line = fr.readLine();
                if(lineContainsSMTPSetting){
                    smtpSuggestion = line;
                    continue or break;
                }
            }
        }
    }
}


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Detecting SMTP Settings Posted: May 26, 2006 4:56 AM
Reply to this message Reply
Oops sorry at the end there I need something like:

return smtpSuggestion;

That's the String that is of use.

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Detecting SMTP Settings Posted: May 30, 2006 11:57 PM
Reply to this message Reply
Found the solution, it lies around JDeskTop. Haven't started implementing it yet.

Flat View: This topic has 2 replies on 1 page
Topic: While loop Previous Topic   Next Topic Topic: 3D Libraries

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use