Merge pull request #80 from paulborza/fix-mail-tester-com-missing-alt-attribute-for-tracking-image
Add ALT attribute for tracking image
This commit is contained in:
commit
2a16bfe7b2
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ module.exports.updateLinks = (campaign, list, subscription, serviceUrl, message,
|
|||
// insert tracking image
|
||||
let inserted = false;
|
||||
let imgUrl = urllib.resolve(serviceUrl, util.format('/links/%s/%s/%s', campaign.cid, list.cid, encodeURIComponent(subscription.cid)));
|
||||
let img = '<img src="' + imgUrl + '" width="1" height="1">';
|
||||
let img = '<img src="' + imgUrl + '" width="1" height="1" alt="Tracking Image">';
|
||||
message = message.replace(/<\/body\b/i, match => {
|
||||
inserted = true;
|
||||
return img + match;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue