Exchange Server: Getting a sent MailMessage to the Sent Folder

1137510 pts.
Tags:
Exchange Server
We've been sending MailMessages with a SMTPClient (that's being delivered successfully) using Exchange Server but now we would like our sent emails go to the Sent folder of the email address that we're sending it from. Here's our code:
using (var mailMessage = new MailMessage("fromaddress@blah.com", "toaddress@blah.com", "subject", "body"))
{
    var smtpClient = new SmtpClient("SmtpHost")
    {
        EnableSsl = false,
        DeliveryMethod = SmtpDeliveryMethod.Network
    };

    // Apply credentials
    smtpClient.Credentials = new NetworkCredential("smtpUsername", "smtpPassword");

    // Send
    smtpClient.Send(mailMessage);
}
Is there a configuration we're missing that makes sure our emails arrive in the Sent Folder?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I think your requirement is mainly oriented around giving the users visibility to what emails have been sent. The sent items folder would be one method to allow this to occur. In the past, I’ve solved this problem by adding a BCC Address that would literally send the email directly to either a distribution list, user, or shared mailbox that allowed the users to review what had been sent.
Try this with an outlook rule of some kind to move the item to their sent items folder marked as read.

using (var mailMessage = new MailMessage(

"fromaddress@blah.com",

"toaddress@blah.com",

"",

"fromaddress@blah.com",

"subject",

"body"))

var smtpClient = new SmtpClient("SmtpHost")

{

EnableSsl = false,

DeliveryMethod = SmtpDeliveryMethod.Network

};

// Apply credentials

smtpClient.Credentials = new NetworkCredential("smtpUsername", "smtpPassword");

// Send

smtpClient.Send(mailMessage);

Thanks & Regards

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: