Email sending as HTML code

See the documentation:

Using up-to-date syntax (action:, data:, which the AIs don’t know):

script:
  sende_testmail:
    sequence:
      - action: notify.email_test
        data:
          title: "Test-E-Mail mit HTML und CSS"
          message: "Test message, plain text"
          data:
            html: >
              <!DOCTYPE html>
              <html>
              <head>
                <style>
                  body {
                    font-family: Arial, sans-serif;
                    line-height: 1.6;
                    color: #333;
                  }
                  h1 {
                    color: #5e9ca0;
                  }
                  p {
                    font-size: 16px;
                  }
                </style>
              </head>
              <body>
                <h1>Test der HTML-Formatierung</h1>
                <p>Dies ist ein einfacher Test, um die HTML- und CSS-Formatierung in   einer E-Mail zu überprüfen.</p>
                <p style="color: #ff1f00;">Text in Rot</p>
                <p style="color: #4ab6ff;">Text in Blau</p>
                <p style="color: #00ff00;">Text in Grün</p>
              </body>
1 Like