Calc Send PDF Email under Windows 10

I am developing a Calc spreadsheet that is to generate a PDF file and then (if possible) email it.

I am developing under Windows 10 but it must also work under Windows XP.

Is this possible? How do I set the default email program if I am using Gmail either via Firefox.

Thanks,
SteveD