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
763 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
  • 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now