Notify.xxxxx is deprecated - how to add jpg as attachement now

This works now using smtp integration - email is sent with the attachment file included. I can not figure aout how to replace it with “notify.send_message” or “smtp.send_message” - how to add the picture as attachement with those two?

    - service: notify.xxxxxxxx
      data:
        data:
          images:
          - /config/www/images/yyyy.jpg
        title: "XXXXXXXX!"
        message: "XXXXXXXX {{now().strftime('%H:%M %d-%m-%Y')}}"

Have a look at SMTP in YAML Phase out it may help, as it is related.