Send Email Using Microsoft Outlook

Sends an email using Microsoft Outlook.

 
 
 
 
 
5 Star
(2)
Add to favorites
Office
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
  • Only works if outlook is not open?
    1 Posts | Last post August 15, 2016
    • As the subject indicates, this function (for me at least) will only work if there is no Outlook process running.  If there is one, I get the following error:
      new-object : Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to 
      the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
      At line:14 char:10
      + $olApp = new-object -comobject outlook.application
      +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : ResourceUnavailable: (:) [New-Object], COMException
          + FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand
      
      
      Needless to say the rest fails after that.  Is there a way to get it to work while outlook is open?
  • $NewMail.Send()
    1 Posts | Last post December 13, 2012
    • This looked great but on my system I got an error.  
      
      Exception calling "Send" with "0" argument(s): "Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"
      At line:1 char:1
      + $NewMail.Send()
      + ~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : ComMethodTargetInvocation
  • $NewMail.Send()
    1 Posts | Last post December 13, 2012
    • This looked great but on my system I got an error.  
      
      Exception calling "Send" with "0" argument(s): "Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"
      At line:1 char:1
      + $NewMail.Send()
      + ~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : ComMethodTargetInvocation