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

Welcome Forums General PowerShell Q&A is it possible to use send-mailmessage to send calendar items?

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
2 years, 5 months ago.

  • Author
    Posts
  • #38629

    Participant
    Points: 1
    Rank: Member

    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

    Keymaster
    Points: 7
    Rank: Member

    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.

The topic ‘is it possible to use send-mailmessage to send calendar items?’ is closed to new replies.