.NET Framework Bookmark and Share   
 index > Network Class Library (System.Net) > Sent emails through Microsoft Exchante Server
 

Sent emails through Microsoft Exchante Server

Hi,

Is there any special thing to do to send emails through Microsoft Exchange Server? Is it like a usual SMTP connection?

In my application there is a tool for send emails, but one of my users is complaining that he cannot send emails through Exchange, possibly it's integrated in Active Directory.

Kind regards
.: Valeriano Tórtola MCTS WPF :.: http://www.vtortola.net :.
vtortola

I think SMTPClient in System.Net.Mail should be able to send email through Microsoft exchange server. But I don't have exchange server so I can't test it

Following link is another way to send email

http://support.microsoft.com/?kbid=313803


Gaurav Khanna
  • Marked As Answer byvtortola Tuesday, September 22, 2009 10:34 AM
  •  
Khanna Gaurav
yes, or if your user logs onto a domain everday/part of domain.
dim domainname as string = System.Environment.UserDomainName
dim myusername as string = System.Environment.UserName

You will only need to send the login details to the server if you are not logged in on domain. or unless the server is configured for trusted ip's to authticate first before sending. usaully not the case, as long as your user is on your network he.she can send mail with your app.
  • Marked As Answer byvtortola Tuesday, September 22, 2009 10:34 AM
  •  
ETS

I think SMTPClient in System.Net.Mail should be able to send email through Microsoft exchange server. But I don't have exchange server so I can't test it

Following link is another way to send email

http://support.microsoft.com/?kbid=313803


Gaurav Khanna
  • Marked As Answer byvtortola Tuesday, September 22, 2009 10:34 AM
  •  
Khanna Gaurav
Thanks!
One thing that I forgot to say: In the application you configure a separate user account that is gonna send the emails... so maybe it's an authentication problem. Build the credentials for Active Directory would be User="domain\user" Password="thepassword", right?

Cheers.

.: Valeriano Tórtola MCTS WPF :.: http://www.vtortola.net :.
vtortola
yes, or if your user logs onto a domain everday/part of domain.
dim domainname as string = System.Environment.UserDomainName
dim myusername as string = System.Environment.UserName

You will only need to send the login details to the server if you are not logged in on domain. or unless the server is configured for trusted ip's to authticate first before sending. usaully not the case, as long as your user is on your network he.she can send mail with your app.
  • Marked As Answer byvtortola Tuesday, September 22, 2009 10:34 AM
  •  
ETS

You can use google to search for other answers

Custom Search

More Threads

• Socket doesn't receive initial data
• Issue witn IsInRole() on server app
• UDP Multicast Dgram size question
• httpwebrequest and httpwebresponse
• Hi, can you help me ?Asp netThis is my problem, waiting your answers
• IPAddress.TryParse throws exception while running as Guest
• calculate bandwidth
• Sending multiple messages asynchronously though SmtpClients without dropping connections?
• executing exe in another system
• OracleDataAdapter.Fill too slow...