Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can made login user form application in c#.net? Pin
Kristian Sixhøj15-Sep-07 11:46
Kristian Sixhøj15-Sep-07 11:46 
GeneralRe: how can made login user form application in c#.net? Pin
Dave Kreskowiak15-Sep-07 15:00
mveDave Kreskowiak15-Sep-07 15:00 
GeneralRe: how can made login user form application in c#.net? Pin
Muammar©15-Sep-07 21:01
Muammar©15-Sep-07 21:01 
GeneralRe: how can made login user form application in c#.net? Pin
Kristian Sixhøj15-Sep-07 21:45
Kristian Sixhøj15-Sep-07 21:45 
GeneralRe: how can made login user form application in c#.net? Pin
Muammar©16-Sep-07 0:56
Muammar©16-Sep-07 0:56 
GeneralRe: how can made login user form application in c#.net? Pin
Kristian Sixhøj16-Sep-07 1:15
Kristian Sixhøj16-Sep-07 1:15 
GeneralRe: how can made login user form application in c#.net? Pin
Dave Kreskowiak16-Sep-07 1:38
mveDave Kreskowiak16-Sep-07 1:38 
QuestionSMTP feedback from project Pin
Mark F.15-Sep-07 4:19
Mark F.15-Sep-07 4:19 
I am working on a feedback form that basically emails the server a small message. The main information that I need in the (outgoing) SMTP server for the user's account.

One problem is how to find the default SMTP server on the user's machine. Considering the following code...,
private bool GetSmtpAccountInfo()
{
    RegistryKey key = Registry.CurrentUser.OpenSubKey(
        @"Software\Microsoft\Internet Account Manager\Accounts\00000001" );
    
    if (key != null)
    {
        DisplayName = key.GetValue("SMTP Display Name").ToString();
        DefaultEmailAddress = key.GetValue("SMTP Email Address").ToString();
        SMTPServer = key.GetValue("SMTP Server").ToString();

        key.Close();
        return true;
    }

    return false;
}
which gets the information from the registry key from the default Internet Account. This still seems to be destined for failure.

Is there a better way?

Any help would be greatly appreciated!
Mark
AnswerRe: SMTP feedback from project Pin
Mohamad K. Ayyash15-Sep-07 4:33
Mohamad K. Ayyash15-Sep-07 4:33 
GeneralRe: SMTP feedback from project Pin
Mark F.15-Sep-07 4:38
Mark F.15-Sep-07 4:38 
AnswerRe: SMTP feedback from project Pin
Mohamad K. Ayyash15-Sep-07 4:58
Mohamad K. Ayyash15-Sep-07 4:58 
AnswerRe: SMTP feedback from project Pin
Ed.Poore15-Sep-07 7:04
Ed.Poore15-Sep-07 7:04 
GeneralRe: SMTP feedback from project Pin
Mark F.16-Sep-07 3:47
Mark F.16-Sep-07 3:47 
QuestionData types Pin
jon-8015-Sep-07 3:12
professionaljon-8015-Sep-07 3:12 
AnswerRe: Data types Pin
Dave Kreskowiak15-Sep-07 3:21
mveDave Kreskowiak15-Sep-07 3:21 
GeneralRe: Data types Pin
jon-8015-Sep-07 3:24
professionaljon-8015-Sep-07 3:24 
JokeRe: Data types Pin
Paul Conrad15-Sep-07 4:00
professionalPaul Conrad15-Sep-07 4:00 
GeneralRe: Data types Pin
jon-8015-Sep-07 4:16
professionaljon-8015-Sep-07 4:16 
GeneralRe: Data types Pin
Dave Kreskowiak15-Sep-07 6:01
mveDave Kreskowiak15-Sep-07 6:01 
GeneralRe: Data types Pin
jon-8015-Sep-07 6:29
professionaljon-8015-Sep-07 6:29 
GeneralRe: Data types Pin
Dave Kreskowiak15-Sep-07 6:41
mveDave Kreskowiak15-Sep-07 6:41 
GeneralRe: Data types Pin
jon-8016-Sep-07 1:36
professionaljon-8016-Sep-07 1:36 
GeneralRe: Data types Pin
Dave Kreskowiak16-Sep-07 1:50
mveDave Kreskowiak16-Sep-07 1:50 
GeneralRe: Data types Pin
jon-8016-Sep-07 2:03
professionaljon-8016-Sep-07 2:03 
GeneralRe: Data types Pin
jon-8015-Sep-07 6:37
professionaljon-8015-Sep-07 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.