.net – Send Email in .NET, with email saved in user’s Sent Items

.netemailoutlookvb.net

I am attempting to send an email using VB.NET.

There are two requirements:

  1. The email be saved in their "Sent Items" folder in Outlook (their only email client).
  2. A PDF (generated on the fly) is attached to the email.

I am currently creating a new MailMessage & sending via a SmtpClient, but I believe that this sends from the server, and not from the client.

Is this possible?

EDIT: This is a winforms application, the purpose is to send reports to clients.

Best Solution

I think you'd need to do 1 of the following to get the exact functionality you want:

  • Outlook Interop
  • Exchange event sink

As a much easier alternative, how about BCC the user (which will get to their Inbox) and configure an Outlook rule to move it to sent items?

Related Question