Click here to Skip to main content
15,885,546 members

Comments by Suvabrata Roy (Top 200 by date)

Suvabrata Roy 5-May-23 1:20am View    
Then you need to use AD authentication :
using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, null, "username", "password"))

https://learn.microsoft.com/en-us/dotnet/api/system.directoryservices.accountmanagement.principalcontext.-ctor?view=netframework-4.8#System_DirectoryServices_AccountManagement_PrincipalContext__ctor_System_DirectoryServices_AccountManagement_ContextType_System_String_System_String_System_String_
Suvabrata Roy 18-Apr-17 11:59am View    
Image links are broken...
Suvabrata Roy 7-Apr-17 6:21am View    
So you have connectivity with the SMTP server ?
Suvabrata Roy 7-Apr-17 3:24am View    
Please post the full code, I could not found any active X dependency in your current code block
Suvabrata Roy 7-Apr-17 3:17am View    
The types and the names of the properties in the anonymous types must match...