title: Why emails sent by smtpclient does not appear in sent items
body: <p>I have implemented a server that sends emails via .Net SmtpClient.
  the mail sending code looks like that:</p>
  
  <pre><code>private static MailMessage SendMail(string to, string subject, string body)
  {
   MailMessage mailToSend = new MailMessage();
   mailToSend.Body = body;
   mailToSend.Subject = subject;
   mailToSend.IsBodyHtml = true;
   mailToSend.To.Add(to);
   try
   {
    mailClient.Send(mailToSend);
   }
   catch (Exception ex)
   {
    //Log data...
   }
   mailToSend.Dispose();
  }
  </code></pre>
  
  <p>and in Web.config i've put the mail's credentials, someting like that:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.net&gt;
      &lt;mailSettings&gt;
        &lt;smtp from="autoemail@mailserver.org"&gt;
          &lt;network host="smtp.mailserver.org" password="pswdpswd" port="25" userName="autoemail" clientDomain="the-domain" enableSsl="true" /&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;
    &lt;/system.net&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The emails sent successfuly and everything works fine BUT when I'm logging in to the email user in the exchange server (in example via Outlook Web-App) I can't see the mail sent via SmtpClient (via code) in the sent items folder.</p>
  
  <p>how can I keep a copy of the sent mails in this folders?
  Thanks!</p>