Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does moz-do-not-send do?

Tags:

html-email

I see the moz-do-not-send="true" attribute in the HTML of emails all the time. Whenever I send links in emails with Thunderbird, it adds it to the <a> tag. What does the moz-do-not-send="true" attribute do?

When I looked it up, I couldn't find a clear answer, but instead suggestions to use it when writing email HTML with no explanation of what it does.

like image 987
Billy Avatar asked Jun 30 '19 18:06

Billy


2 Answers

Since at least 2004, Thunderbird has been designed by default to include the full image file contents of images inserted in composed emails. If moz-do-not-send is absent or false, then upon sending the email, Thunderbird downloads the image and attaches it to the email.

The moz-do-not-send attribute is a signal used internally by Thunderbird to tell it not to include the full image file contents, but instead to simply link to the external image. It's a proprietary attribute used internally by Mozilla-derived software; it has never been part of any HTML specification.

This is best documented at MozillaZine here. You can see details of the use of this attribute in the Thunderbird source repository here.

like image 188
sondra.kinsey Avatar answered Oct 07 '22 00:10

sondra.kinsey


Cant add a comment, due to the 50 reputation restriction.. Just need to alert to the fact that the checked "solution" is a bit off-topic. All the answers here refer to <img> tags which is not what the OP asked about. The question refers to anchor tags. ie <a moz-do-not-send="true" href="https://blah.blah">blah.blah</a> So what does moz-do-not-send do for an anchor in an email?

like image 6
remote one Avatar answered Oct 06 '22 23:10

remote one