RE: SMTP Authentication flag
- From: changliw@xxxxxxxxxxxxxxxxxxxx ("Charles Wang [MSFT]")
- Date: Tue, 27 May 2008 07:31:20 GMT
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.
=========================================================
.
- Follow-Ups:
- Re: SMTP Authentication flag
- From: Ashutosh
- Re: SMTP Authentication flag
- References:
- SMTP Authentication flag
- From: Ashutosh Bhawasinka
- SMTP Authentication flag
- Prev by Date: Howto display send mail dialog upon usage of extended MAPI from Delphi
- Next by Date: Re: HideAttachments , PR_HIDE_ATTACH and PR_ATTACHMENT_HIDDEN
- Previous by thread: SMTP Authentication flag
- Next by thread: Re: SMTP Authentication flag
- Index(es):
Relevant Pages
|
Loading