mailgun / mailgun.js

Javascript SDK for Mailgun
https://www.npmjs.com/package/mailgun.js
Apache License 2.0
519 stars 110 forks source link

Specifying List Unsubscribe and List-Unsubscribe-Post': 'List-Unsubscribe=One-Click' #396

Closed prashanthcoe19 closed 8 months ago

prashanthcoe19 commented 9 months ago

According to Google, Starting Feb 2024, "If you send more than 5,000 message per day, your marketing and subscribed messages must support one-click unsubscribe (https://support.google.com/mail/answer/81126#requirements-5k)." Now while sending batch emails from mailgun, I have manually added those headers like this as I could not explicitly find those headers in mailgun settings:

'h:List-Unsubscribe': ' https://solarmora.com/unsubscribe/example, mailto:solarmora@unsubscribe.com', 'h:List-Unsubscribe-Post': 'List-Unsubscribe=One-Click',

Now, in gmail, while viewing message source it does shows these headers, also in dmarc the header is specified, however in the gmail UI there are no any Unsubscribe Links or anything.

Is it the issue of gmail or Mailgun? Or am I missing something?

olexandr-mazepa commented 9 months ago

Hi @prashanthcoe19 As for me, it seems you need to configure the unsubscribe template in the domain settings.
app.mailgun.com -> sending -> domain setting. On the tab "Domain settings" you can find an area "Tracking" and then "Unsubscribes" input in it. After turning it on, you can provide a custom template for your unsubscribe link.

image

Hope this will help, otherwise, I would recommend you to reach the support team through the "Customer Assistant" at the https://help.mailgun.com/hc/en-us