title: Copy sent emails to Sent folder (email server)
body: <p>I have a working script in PowerShell to send emails.
  I need to know how to put a copy of my sent emails in Sent folder on mail server.</p>
  
  <pre><code>$EmailTo = "you@email.com"
  $Subject = "Subject"
  $EmailFrom = "me@email.com"
  $Body = Get-Content -Path body.html
  $SMTPServer = "mail.email.com"
  $SMTPMessage = New-Object System.Net.Mail.MailMessage ($EmailFrom, $EmailTo, $Subject, $Body)
  $SMTPMessage.IsBodyHTML = $true
  $SMTPClient = New-Object Net.Mail.SmtpClient ($SmtpServer, 25)
  $SMTPClient.EnableSsl = $False
  $SMTPClient.Credentials = New-Object System.Net.NetworkCredential ("me@email.com", "password");
  $SMTPClient.Send($SMTPMessage)
  </code></pre>