Solved

c# winform send mail as current AD logged in users email address and get it in sent items? SMTP

Posted on 2011-03-21
6
771 Views
Last Modified: 2013-12-17
hi all,

i know its possible to send an email via smtp as a user from within our network (allthough i dont know how to do that yet)

but is it possible once an email has been sent by that user that it gets added to their sent items in exchange?

Thanks
0
Comment
Question by:awilderbeast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:Ramone_Hamilton
ID: 35180424
In order for you to do this, you will need to send the message via exchange rather than via the smtp within your code.  Depending on which version of Exchange that you have, this can be done either via web services or the exchange api.
0
 
LVL 1

Author Comment

by:awilderbeast
ID: 35181031
i have exchange 2010 SP1 can you tell me where i need to look to get this setup?
0
 
LVL 7

Expert Comment

by:nbove
ID: 35181980
Another alternative would be to use a programmatic LDAP query against your PDC to retrieve the desired information.  Though I would suggest sticking with the Exchange API.  You can find details about the Exchange API at:
http://msdn.microsoft.com/en-us/exchange/default
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
LVL 1

Author Comment

by:awilderbeast
ID: 35188070
do you know where it needs to be installed? the exchange server, the server the app is on, the development machine?
i installed on my devloper machine, but i cant see any COM objects relating to exchagne nor can i use the below assembly

using Microsoft.Exchange.WebServices.Data;

also do you know a specific link that will help me get what im trying to do?

Thanks
0
 
LVL 7

Accepted Solution

by:
nbove earned 500 total points
ID: 35190863
This link will take you to the EWS API download:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1

This link will take you to the Web Services SDK which includes source code samples:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=D55DCD05-1DD6-4F44-956F-82F052EE7D82
0
 
LVL 1

Author Closing Comment

by:awilderbeast
ID: 35364839
thanks
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question