Applescripting Chrome email

Hello all, I need some guidance please. Since recent security changes at Microsoft. AppleMail and Outlook on my very old MacBook (El Capitan) can no longer send/recieve emails as authorisation cannot bind. Before I could automate email (hotmail account) sending with AppleScript. I now use a web mail page for Outlook via Chrome but having to send manually. Can I get some advice on how to control, with AppleScript, the attached webpage to:

  1. open a new email
  2. add recipient in the To field
  3. add a subject
  4. attach a file
  5. send email.

Or is there another solution (apart from buying a newer Mac!). Thank you

Applescripting Chrome email
 
 
Q