Hi, I am trying to make script work but cannot work out whats wrong...
I am getting no errors but it is not adding the text to the mail body...
I have a rule setup to check subject and if it contains certain text then..
run function afp
forward email
delete email
the forward and delete work but the function does not, i get no errors but the text is not added to the body, can you help please???
Code:
' Sub OnClientConnect(oClient)
' End Sub
' Sub OnAcceptMessage(oClient, oMessage)
' End Sub
' Sub OnDeliveryStart(oMessage)
' End Sub
' Sub OnDeliverMessage(oMessage)
' End Sub
' Sub OnBackupFailed(sReason)
' End Sub
' Sub OnBackupCompleted()
' End Sub
' Sub OnError(iSeverity, iCode, sSource, sDescription)
' End Sub
' Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
' End Sub
' Sub OnExternalAccountDownload(oMessage, sRemoteUID)
' End Sub
Function afp(oMessage)
frontpage = "{frontpage}"
oMessage.body = frontpage & VBNewLine & VBNewLine & oMessage.body
oMessage.save
End Function