1

有人知道如何使用 https://github.com/juanmiguelbesada/mjml-php 库在 MJML 中使用php变量谢谢

$greeting = 'Hello World';

    <mjml>
      <mj-body>
        <mj-section>
          <mj-column>

            <mj-image width="100px" src="/assets/img/logo-small.png"></mj-image>

            <mj-divider border-color="#F45E43"></mj-divider>

            <mj-text font-size="20px" color="#F45E43" font-family="helvetica"><?=$greeting?></mj-text>

          </mj-column>
        </mj-section>
      </mj-body>
    </mjml>
4

0 回答 0