title: Powershell Automated Email
body: <p>new to the forum, so apologises if this in the wrong area.</p>
  
  <p>I am looking to create a powershell script which emails a list (.txt) file consisting of 200 emails, the text file will be updated aswell with new email addresses. The email body which will be send is a standard (generic) email, nothing specific to each email address.</p>
  
  <p>Is this possible?</p>
  
  <p>This is the script I have so far, but its not sending the email..</p>
  
  <pre><code>$emails = @() 
        ForEach ($recipient in Get-Content "\\FILE Location")
  
        {
          $emails += "$recipient"
        }
  
  $to = "TO EMAIL"
  $smtp = "SMTP Server"
  $from = "FROM EMAIL"
  $subject = "Subject" 
  $body = "EMAIL BODY"
  send-MailMessage -SmtpServer $smtp -To $to -Bcc $emails -From $from -Subject $subject -Body $body -BodyAsHtml -Priority high
  </code></pre>
  
  <p>Thanks in advance
  Matt.</p>