title: Send email with Powershell from different mailbox
body: <p>I have created a small PS script to create an email for my pipeline to send out whenever there is a deployment. the problem is i dont want the email to be sent from my personal email but from the company outlook email. i searched and saw different SMTP server names and using mail.from but i cant get it to work. can someone help me out?</p>
  
  <pre><code> param(
  [Parameter(Mandatory=$true,Position=0)]
  [string]$Address1,
  [Parameter(Mandatory=$true,Position=1)]
  [string]$Address2,
  [switch]$Recurse,
  [switch]$Force  
  )
  
   $ol = New-Object -comObject Outlook.Application  
   $mail = $ol.CreateItem(0)  
   $Mail.Recipients.Add($Address1) 
  $Mail.Recipients.Add($Address2) 
  $Mail.Subject = "DSC Deployment in Progress"  
  $Mail.Body = "There is a DSC install beginning. . ."  
  $Mail.Send() 
  </code></pre>