I’m trying to use some code in a previous post in 2021r1.1 but it fails on the second last line with “This Item does not exist”
Dim oMail As EmailMessage
oMail = New EmailMessage
oMail.FromAddress = FromAddress
oMail.Subject = Subject
oMail.BodyPlainText = Message
oMail.Headers.AppendHeader(“X-Mailer”,“LSA SMTP Demo”) //THIS ITEM DOES NOT EXIST EXCEPTION HERE
oMail.AddRecipient(trim(Recipient))
Have I missed a step?