ITEM DOES NOT EXIST problem

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?

Well knock me over with a feather, it’s the quotation marks from the forum post. Type over them all is well.