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

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 7 months ago.

  • Author
    Posts
  • #38629
    Profile photo of David Schmidtberger
    David Schmidtberger
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.