How to send an email with attachment

Hello all,
Sending an email without an attachment is set up and working.
Now I can call a service under Develepment Tools → Services → Notifications: Send a notification with emailzxcs.

The YAML is:

service: notify.emailzxcs
data:
  message: HA
  title: HA
  data:
    file: 'bso_gas.csv'
    html: >
      <!-- #######  YAY, I AM THE SOURCE EDITOR! #########--> <h1 style="color:
      #5e9ca0;"><span style="font-size: large;"><strong><em>This is a test of
      HTML formatting.</em></strong></span></h1> <div><span style="font-size:
      large;">&nbsp;</span></div> <div><span style="font-size: large;">This
      email was sent from&nbsp;<a href="http://siytek.com/">siytek.com</a></span></div><div>&nbsp;</div>
      <div><span style="color: #ffff2e; font-size: x-large;">We can change the
      colour of text!</span></div> <div><span style="color: #ff1f00;">We can
      change the colour of text!</span></div> <div><span style="color:
      #00ff00;">We can change the colour of text!</span></div> <div><span
      style="color: #4ab6ff;">We can change the colour of text!</span></div>`

I get an email, but without any attachment.

PS1: the bso_gas.csv is direct in the configuration directory, where also the configuration.yaml file is. And the file is created / update with the fileplatfrom → meaning I do have acces?
PS2: I’ve copied the HTML from an other example

I have the same question. I want to export csv data to another system using the notify to file and mail service.
Did you find a solution?

No, at his moment I also use the Google sheet integration (besides the CSV). One from HA and one with Node-Red.