Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle mj-html-attributes #426

Open
nevans opened this issue May 21, 2024 · 0 comments
Open

Handle mj-html-attributes #426

nevans opened this issue May 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nevans
Copy link

nevans commented May 21, 2024

https://documentation.mjml.io/#mj-html-attributes

Here's an example of how I'd like to use it:

<mjml>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
  <mj-head>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    <mj-html-attributes>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
      <mj-selector path="a[href]">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
        <mj-html-attribute name="clicktracking">off</mj-html-attribute>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
      </mj-selector>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
    </mj-html-attributes>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
  </mj-head>
...

In order to disable SendGrid's clicktracking for specific emails or specific links (e.g. forgot password).

@jdrouet jdrouet added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants