CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011
    Location
    Pune India
    Posts
    4

    SMTP Server Name

    Hi All,

    I am using a Win 2k8 box and trying to find the Default SMTP address of the machine.

    I cant find anything in the registry that can give me the SMTP Address.

    I tried searching in the registry entry : \Software\Microsoft\Internet Account Manager
    but no luck.

    I can't use third party assemblies. Need standard C++ code.

    Any help will be appreciated.

    Thanks
    Sagar

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: SMTP Server Name

    Just search for SMTP in registry!
    I've found a lot of SMTP data in:
    HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\00000003
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<user name>\9375CFF0413111d3B88A00104B2A6676\00000004
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: SMTP Server Name

    Well, that's only if you've already configured something (Outlook, Thunderbird, etc.) to enter the data. A fresh Windows install will not have a "default SMTP server" in the registry.

    Viggy

  4. #4
    Join Date
    May 2011
    Location
    Pune India
    Posts
    4

    Smile Re: SMTP Server Name

    Thanx all for the help .... ..

    Appreciate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured