is it possible to use send-mailmessage to send calendar items?

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 2 years, 1 month ago.

  • Author
  • #38629

    David Schmidtberger

    general web-searches not really showing anything.

    i have some scripts that are run with a secondary account (privileged account)
    the scripts need to send out some calendar invites for future activities
    today i call a seperate powershell console where the running user has to input his non privileged credentials to access outlook and send the invites.

    i'd really like to just use send-mail message as it doesn't require outlook to be running, and can be used to send from any mailbox needed

  • #38631

    Don Jones

    In theory, yes. A calendar invite is just a specially formatted block of text, added as part of a multipart messaging. But you'll have to figure out how to construct it and format it – PowerShell can't do that for you. If you have the invites as a file already, Send-MailMessage can handle attachments for you.

You must be logged in to reply to this topic.