Hello,
I have this code (which I did not write) that I run in Windows PowerShell to create MS Outlook meeting invites and it works wonderfully. What I'd like to do though, is to be able to turn the "$meeting.Body" into an html body. I'd like to basically take any html code and add it into that "field" so that I can change the look and feel of the email body for the invitation.
Thank you very much for any help.
$meetingDate = Get-date "11/26/2021 5:00PM"
$ol = New-Object -ComObject Outlook.Application
$meeting = $ol.CreateItem('olAppointmentItem')
$meeting.Subject = 'This is your meeting invite'
$meeting.Body = 'Please join me in this meeting to discuss multiple issues'
$meeting.Location = 'My Office'
$meeting.ReminderSet = $true
$meeting.Importance = 1
$meeting.MeetingStatus = [Microsoft.Office.Interop.Outlook.OlMeetingStatus]::olMeeting
$meeting.Recipients.Add('username@Karima ben .com')
$meeting.ReminderMinutesBeforeStart = 15
$meeting.Start = $meetingDate
$meeting.Duration = 30
$meeting.Send()