Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: MS Exchange Server 'Client' Pin
Spyder_Snyper26-May-07 4:53
Spyder_Snyper26-May-07 4:53 
GeneralRe: MS Exchange Server 'Client' Pin
ekynox26-May-07 17:17
ekynox26-May-07 17:17 
GeneralRe: MS Exchange Server 'Client' Pin
Spyder_Snyper27-May-07 5:30
Spyder_Snyper27-May-07 5:30 
GeneralRe: MS Exchange Server 'Client' Pin
Spyder_Snyper27-May-07 9:53
Spyder_Snyper27-May-07 9:53 
GeneralRe: MS Exchange Server 'Client' Pin
ekynox27-May-07 16:30
ekynox27-May-07 16:30 
GeneralRe: MS Exchange Server 'Client' Pin
ekynox28-May-07 2:35
ekynox28-May-07 2:35 
GeneralRe: MS Exchange Server 'Client' [modified] Pin
Spyder_Snyper28-May-07 5:00
Spyder_Snyper28-May-07 5:00 
GeneralRe: MS Exchange Server 'Client' Pin
ekynox28-May-07 21:12
ekynox28-May-07 21:12 
hi again,
today I installed Exchange 2003 on my test server running windows server 2003. The same test server was my domain controller. I just did a default installation of Exchange and Active Directory. I didnt change any security settings etc because I have zero idea about active directory security maintenance.

I ran a test network with my test server being the exchange and domain controller. In this network I ran another Win XP client machine which was not part of my test domain. I wrote the SMTP code I gave you a few days ago as win app and ran it on this Win XP client machine and I was not prompted for any username or passwords.

This would leads me to believe that your configuration of active directory and exchange must be running some high security configuration which needs the user to be authenticated before any email can be sent out or received.

There are 3 solutions you can try:
1) The first solution is that the machine you are using to run the SMTP code I gave before needs to logon to the domain and authenticate the user. The user needs to be part of the active directory. Then run the email sending application you wrote. Maybe check with whoever setup the exchange server on its user authentication requirements.

2) You use an alternative .NET based SMTP class. I gave you the reference Lumisoft.dll. Go to this website and download this dll library:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/LumiSoft.Net.zip
Create a new .NET windows application and use the Lumisoft dll to create an email sending application. You will need to use the LumiSoft.Net.SMTP.Client.SMTP_Client namespace. There is a chm helpfile which describes how to use the dll. I dont have the time right to write you a code snippet but read through the helpfile and there are code fragments to get you started.

If you get stuck go to the author's webpage he has a forums section and put a post there. The author is a very nice guy and he has an article on codeproject regarding the lumisoft.dll.

3) In the code I had provided earlier ensure that you used the defaultcredentials property take a look below:

System.Net.Mail.SmtpClient smtpServer = new System.Net.Mail.SmtpClient("192.168.0.1");
smtpServer.UseDefaultCredentials = true;

What this does is that whoever is logged on to the machine that is executing this code their credentials will be used to authenticate against the SMTP server. You have to makesure that the username and password are actually validated against active directory being used by your exchange server.

Let me know how you go and I will see if I can write some code using Lumisoft.

Good luck.
GeneralRe: MS Exchange Server 'Client' Pin
Spyder_Snyper30-May-07 6:27
Spyder_Snyper30-May-07 6:27 
GeneralRe: MS Exchange Server 'Client' Pin
ekynox30-May-07 14:36
ekynox30-May-07 14:36 
QuestionWPF Window Location Pin
lost in transition 23-May-07 10:31
lost in transition 23-May-07 10:31 
AnswerRe: WPF Window Location Pin
led mike23-May-07 10:35
led mike23-May-07 10:35 
AnswerRe: WPF Window Location Pin
lost in transition 23-May-07 10:36
lost in transition 23-May-07 10:36 
QuestionWrite a character with a text writter Pin
Anka_Ame23-May-07 9:07
Anka_Ame23-May-07 9:07 
AnswerRe: Write a character with a text writter Pin
Tarakeshwar Reddy23-May-07 9:13
professionalTarakeshwar Reddy23-May-07 9:13 
AnswerRe: Write a character with a text writter Pin
Expert Coming23-May-07 9:17
Expert Coming23-May-07 9:17 
QuestionPrint an image by using C# Pin
lehoanglittle23-May-07 7:48
lehoanglittle23-May-07 7:48 
AnswerRe: Print an image by using C# Pin
Martin#23-May-07 8:09
Martin#23-May-07 8:09 
AnswerRe: Print an image by using C# Pin
Expert Coming23-May-07 9:12
Expert Coming23-May-07 9:12 
QuestionDataGrid: how disable select multi row with shift and arrow key Pin
zeroonea23-May-07 7:46
zeroonea23-May-07 7:46 
QuestionSFtp with .NET Pin
shiveta23-May-07 7:04
shiveta23-May-07 7:04 
AnswerDon't cross post message boards Pin
Dave Herren23-May-07 7:32
Dave Herren23-May-07 7:32 
AnswerRe: SFtp with .NET Pin
Judah Gabriel Himango23-May-07 11:14
sponsorJudah Gabriel Himango23-May-07 11:14 
GeneralRe: SFtp with .NET Pin
shiveta23-May-07 21:16
shiveta23-May-07 21:16 
QuestionHow to extract filename information from running processes ? Pin
adimangla23-May-07 4:57
adimangla23-May-07 4:57 

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.