Rule mailActions refers to the missing type Object

After boot I get a Rule error
The field Tmp_garageRules.mailActions refers to the missing type Object

Then when I edit after I don’t get any validation errors.
is this just telling me that my email thing isn’t initialised yet?

rules code:

val mailActions = getActions("mail","mail:smtp:mythbox_mail")
door="Door1"
open_duration = ((now.toInstant().toEpochMilli() - doorOpenTime1) / 60000)
mailActions.sendMail(email,"Garage closed " + door, "Garage closed "+ door  + " was open for " + open_duration + " mins")

Openhab log file after boot up

2021-08-14 08:26:51.684 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'garage.rules', using it anyway:
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object

Hi Paul, I do have the same. Did you find out the root cause of this problem?
Thanks
Marco

Yes it was probably the mail object wasn’t initialised, which I could do much about.
Apart from error in starting it was fine, but now I’m migrating to JavaScript so we’ll see how that goes