none
How to modify Outlook PS1 to Outlook 365 PS1 RRS feed

  • Question

  • #could an Outlook 365 powershell guru (or the scripting guy) point me to a equivalent forum discussion or blog or . . . that would do what this script below did in earlier non-azure based outlook

    # short request: I want modify the script below to run on Outlook365

    param($Argument1,$Argument2,$Argument3)

    $ol = New-Object -comObject Outlook.Application
    $mail = $ol.CreateItem(0)
    $mail.to = "$Argument1"
    $mail.Subject = "$Argument2"
    $mail.Body = "$Argument3"
    $mail.save()
    $inspector = $mail.GetInspector
    $inspector.Display()

    Monday, January 20, 2020 3:55 PM

All replies

  • That will only work on Desktop Outlook and there is no API for Web Outllok that does the same thing.  The web version does not allow what you are trying to do.


    \_(ツ)_/

    Monday, January 20, 2020 8:04 PM