HTML Signature Automation

I have a vbscript that automatically enables a HTML signature which worked fine against Notes 6.5 , this is the code:

Set session = CreateObject(“Lotus.NotesSession”)

    Call session.Initialize()

    mailServer = session.GetEnvironmentString("MailServer", True)

    mailFile = session.GetEnvironmentString("MailFile", True)

    Set dbMail = session.GetDatabase(MailServer, MailFile)



Set mailprof = dbmail.GetprofileDocument("Calendar Profile")

Call mailprof.ReplaceItemValue("EnableSignature", "1")

Call mailprof.ReplaceItemValue("SignatureOption", "2")

Call mailprof.ReplaceItemValue("Signature_2", "C:\Email Siganture\my_sig.htm")

Call mailprof.ComputeWithForm(True, False)

Call mailprof.Save(True, False)

Trying it against Notes 8.5 works partially, the tick box to enable a signature gets ticked but the HTML signature isn’t there.

I’m assuming that it’s because Notes 8.5 imports the HTML signature rather than just pointing to the folder containing the files.

I can’t find any information on what I would need to change in the script to get it to work. Has anyone else done this with Notes 8.5?

Thanks.