RE: SMTP Authentication flag



Hi Ashutosh,
I understand that you would like to programmatically find out if your
account was set with "use the same login information as the incoming
server" for the outgoing server.
If I have misunderstood, please let me know.

Based on my research, no public API for Outlook can retrieve the
information. One possible workaround I can think is that you can read the
related registry keys under the key:
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\Default Outlook Profile\9375CFF0413111d3B88A00104B2A6676.

To locate what the registry key (0000000x) should be for your account, you
can iterate the registry keys to check if the value of the subkey "Account
Name" equals to your account name. Then you can read of the key information
of "SMTP Server", "SMTP Use Auth", "SMTP User", "SMTP Use SPA" and "SMTP
AuthMethod" etc.

If you configure "My outgoing server (SMTP) requires authentication", "SMTP
Use Auth" is 1. By default, if "Use same settings as my incoming mail
server" is selected, "SMTP AuthMethod" is not displayed; if "Log on using"
selected, "SMTP AuthMethod" is 1; and if "Log on incoming mail server
before sending mail" selected, "SMTP AuthMethod" is 2.

You may refer to the following articles regarding read data from windows
registry:
A(nother) C++ Registry Wrapper
http://www.codeproject.com/KB/system/CPPRegistryWrapper.aspx
Managed C++: Read and Write Registry Keys and Values
http://www.developer.com/net/cplus/article.php/3449721

Hope this helps. If you have any other questions or concerns, please feel
free to let me know.

Best regards,
Charles Wang
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================

.



Relevant Pages

  • Re: SMTP Authentication flag
    ... I am using IOlkAccountManager /IOlkAccount Interface to retrieve all the accounts configured in the outlook for one/all/given profile. ... I understand that you would like to programmatically find out if your account was set with "use the same login information as the incoming server" for the outgoing server. ... To locate what the registry key should be for your account, you can iterate the registry keys to check if the value of the subkey "Account Name" equals to your account name. ... We welcome your comments and suggestions about how we can improve the support we provide to you. ...
    (microsoft.public.win32.programmer.messaging)
  • RE: Where are User Account Pictures stored on Vista
    ... Account Pictures\.bmp. ... The .dat file is empty ... Microsoft Online Community Support ... initial response from the community or a Microsoft Support Engineer within ...
    (microsoft.public.win32.programmer.kernel)
  • Re: SMTP Authentication flag
    ... OutlookSpy - Outlook, CDO ... To locate what the registry key should be for your account, ... you can iterate the registry keys to check if the value of the subkey ... Microsoft Online Community Support ...
    (microsoft.public.win32.programmer.messaging)
  • Re: How to connect to SQL from machine without domain
    ... I think SQL authentication is the most proper solution for such an environment. ... A work around is to create a "mirror" account on both database server. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.scripting.vbscript)
  • RE: Msg 15404: Could not obtain information about user
    ... I understand that when you changed your DAEMON startup account from ... What is the type of the trigger MyTable_MyUpdate, ... Microsoft Online Community Support ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.sqlserver.security)

Loading