Add email action to any page in business central in AL code

Hello everyone,

I was wondering if anyone would happen to know how to add the email action to any page in BC using AL.

A code example would be helpful.

Thanks.