Click here to Skip to main content
15,915,748 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Doc to PDF conversion Pin
Vasudevan Deepak Kumar21-Nov-07 3:31
Vasudevan Deepak Kumar21-Nov-07 3:31 
QuestionRunning 1.0, 1.1 and 2.0 applications at the same time... Pin
martin_hughes20-Nov-07 23:39
martin_hughes20-Nov-07 23:39 
AnswerRe: Running 1.0, 1.1 and 2.0 applications at the same time... Pin
Pete O'Hanlon20-Nov-07 23:56
mvePete O'Hanlon20-Nov-07 23:56 
GeneralRe: Running 1.0, 1.1 and 2.0 applications at the same time... Pin
martin_hughes21-Nov-07 0:10
martin_hughes21-Nov-07 0:10 
GeneralRe: Running 1.0, 1.1 and 2.0 applications at the same time... Pin
Dave Kreskowiak21-Nov-07 16:40
mveDave Kreskowiak21-Nov-07 16:40 
QuestionExpoting .csv data to SQL Pin
Vipul Mehta20-Nov-07 0:50
Vipul Mehta20-Nov-07 0:50 
AnswerRe: Expoting .csv data to SQL Pin
Vasudevan Deepak Kumar20-Nov-07 3:37
Vasudevan Deepak Kumar20-Nov-07 3:37 
QuestionSMTPClient class with Exchange 5.5 [modified] Pin
bobishkindaguy19-Nov-07 13:25
bobishkindaguy19-Nov-07 13:25 
Has anyone been successful sending email out through Exchange 5.5 using the .NET SMTPClient object?

I get a "relaying denied" type of error on the .Send command.

I have been researching this and working on it for a couple of weeks now.

Factors that bear on the matter:
1. Exchange is willing to send messages from SMTPClient to local mail addresses, but not external addresses.

2. There is a feature in Exchange that permits relaying for listed IPs. The IT guy has added the IP of the computer sending the emails to this "exception list for SMTP clients".

3. If we bypass the Exchange server and specify the ISP's SMTP server as the hostname, everything works fine. But the downside of this is that Exchange keeps logs, which the customer desires to utilize.

4. This doesn't seem to involve credentials. The Exchange 5.5 server is happy to send the emails within the domain without any credential information.

5. Strangely, a few emails did go through, and we examined the headers of those emails. The headers included something like the following pseudo-information:
a) "AComputerName@TheDomain.com" (This relayed fine)
b) "AComputerName" (This did not relay)

We couldn't get it to repeat 5a. What was happening there anyway?
Was the SMTPClient suddenly able to append the domain name
of the sending computer? I can't seem to get the SMTPClient
to do this again. It doesn't seem to know how to add the
domain name to the name of the local computer.


I saw an article on using reflection to extract the domain name from one of the properties of the SMTPClient object, but I wasn't sure which property to apply the domain name to. (It's not the "Hostname" property, since that is for specifying the name of the Exchange Server.)

Here's the article, and when you get there, just click the "View" link under the "Workaround" heading. Here is the reference for the article:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94378

Thanks, everyone.



________
42 is definitely not the meaning of life.
I knew that when I turned 43.


-- modified at 19:46 Monday 19th November, 2007
QuestionWindows form in Windows service ,Is it possible? Pin
peaceziz19-Nov-07 2:05
peaceziz19-Nov-07 2:05 
AnswerRe: Windows form in Windows service ,Is it possible? Pin
Pete O'Hanlon19-Nov-07 2:39
mvePete O'Hanlon19-Nov-07 2:39 
GeneralRe: Windows form in Windows service ,Is it possible? Pin
peaceziz19-Nov-07 3:37
peaceziz19-Nov-07 3:37 
GeneralRe: Windows form in Windows service ,Is it possible? Pin
originSH19-Nov-07 3:38
originSH19-Nov-07 3:38 
GeneralRe: Windows form in Windows service ,Is it possible? Pin
Pete O'Hanlon19-Nov-07 3:49
mvePete O'Hanlon19-Nov-07 3:49 
GeneralRe: Windows form in Windows service ,Is it possible? Pin
originSH19-Nov-07 4:00
originSH19-Nov-07 4:00 
Questionhelp me Pin
MRaghunath18-Nov-07 23:40
MRaghunath18-Nov-07 23:40 
AnswerRe: help me Pin
Pete O'Hanlon19-Nov-07 0:25
mvePete O'Hanlon19-Nov-07 0:25 
GeneralRe: help me Pin
SimulationofSai19-Nov-07 0:41
SimulationofSai19-Nov-07 0:41 
AnswerRe: help me Pin
Dave Kreskowiak19-Nov-07 6:06
mveDave Kreskowiak19-Nov-07 6:06 
AnswerCome on guys Pin
Christian Graus19-Nov-07 9:47
protectorChristian Graus19-Nov-07 9:47 
GeneralRe: Come on guys Pin
Pete O'Hanlon19-Nov-07 10:09
mvePete O'Hanlon19-Nov-07 10:09 
GeneralRe: Come on guys Pin
Dave Kreskowiak19-Nov-07 10:10
mveDave Kreskowiak19-Nov-07 10:10 
QuestionWeb Service Pin
senthilsstil18-Nov-07 23:06
senthilsstil18-Nov-07 23:06 
AnswerRe: Web Service Pin
Pete O'Hanlon19-Nov-07 0:27
mvePete O'Hanlon19-Nov-07 0:27 
AnswerRe: Web Service Pin
Vasudevan Deepak Kumar19-Nov-07 18:19
Vasudevan Deepak Kumar19-Nov-07 18:19 
QuestionHow to make datgrid searchable in .net framewok 2.0 Pin
Rock Star.18-Nov-07 19:18
Rock Star.18-Nov-07 19:18 

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.