# Remove (or merge) Elastic email Unsubscribe

**URL:** https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236
**Category:** Self-hosting
**Tags:** email, hosting
**Created:** [September 17, 2017, 9:04pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236 "2017-09-17T21:04:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mmiada](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mmiada/32/78441_2.png) [@mmiada](https://meta.discourse.org/u/mmiada)
#### Post date: [September 17, 2017, 9:04pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/1 "2017-09-17T21:04:53Z")

</div>

hi,

i’m using elastic email for delivery (from your recom.)

but i can’t remove unsubscribe link from elastic email (i think because is mandatory)

from what i read is a way to merge some how. they give this [doc](https://elasticemail.com/support/user-interface/unsubscribe/#Unsubscribe-Link)

how can i solve this? i this many discourse users have elastic email, maybe have also a solution.  
plus i need user to unsubscribe from discourse link not from elastic link.

thank you very much.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2017, 8:31pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/2 "2017-09-18T20:31:41Z")

</div>

If you’re certain the link is being added by Elastic, you’ll need to contact Elastic for help removing the unsubscribe link. We (Discourse) can’t help with that.

---

<div class="post-metadata">

### Author: ![allu](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@allu](https://meta.discourse.org/u/allu)
#### Post date: [October 9, 2017, 8:12pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/3 "2017-10-09T20:12:01Z")

</div>

Hi Joshua

Elastic Email, one of your [recommended email services](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md), will always add an unsubscribe link at the end of any mail sent through their service in order to comply with anti spam legislation. There is no way that this can be disabled, not even by contacting support.

It is clear that managing unsubscribes in a separate application (i.e. Elastic Email) is not really a great option. I think what @mmiada meant, and I would like to ask as well, is the following:

Does Discourse provide any way to disable all emails for a given user by making a http request to Discourse from an external application, with the email address of the unsubscribing user as a parameter? This would allow any unsubscribes coming from Elastic Email to disable mailing for the unsubscribing user, because Elastic Email offers this capability in their system:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/9/19ee6bcae6078f72dd67fe8d744a7fd23f6569d5.png)

The Elastic Email http notification specification is documented [here](https://elasticemail.com/support/settings/notifications/).

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 9, 2017, 8:23pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/4 "2017-10-09T20:23:05Z")

</div>

I’m not sure personally, you’d need another engineer to confirm. Perhaps @zogstrip knows.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 11, 2017, 8:25am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/5 "2017-10-11T08:25:32Z")

</div>

> [@allu](#):
>
> Does Discourse provide any way to disable all emails for a given user by making a http request to Discourse from an external application, with the email address of the unsubscribing user as a parameter?

The only unsubscribe route we have takes an “`unsubscribe key`” as parameter.

But we do support [webhooks](https://github.com/discourse/discourse/blob/master/app/controllers/webhooks_controller.rb) for our other recommended email services. I’m open to a PR adding support for Elastic Email :wink:

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [October 11, 2017, 8:55am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/6 "2017-10-11T08:55:14Z")

</div>

As far as I understand, that would only partially solve the problem because if users re-subscribed to mails from their Discourse profile, this would fail (they’d need to resubscribe with ElasticMail). I’m not sure there is a good solution to this :frowning:

---

<div class="post-metadata">

### Author: ![Majedsam](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Majedsam](https://meta.discourse.org/u/Majedsam)
#### Post date: [October 13, 2017, 9:00pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/7 "2017-10-13T21:00:06Z")

</div>

@allu Is it possible to hide the address though? I don’t mind having the unsubscribe button but the address of my elasticmail account shows everytime an email is sent.

---

<div class="post-metadata">

### Author: ![senty](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@senty](https://meta.discourse.org/u/senty)
#### Post date: [March 16, 2018, 8:38pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/8 "2018-03-16T20:38:32Z")

</div>

+1 for removing address from footer. Is there any way to do it at least?  
@Majedsam did you manage to remove it?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 20, 2018, 9:26pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/9 "2018-03-20T21:26:38Z")

</div>

What a bummer. It really looks like you can’t send a single email through elastic email without an unsubscribe link at the bottom. (In my case, they’re also adding my address. But I haven’t investigated whether the address can be removed).

In any case, I think this should disqualify elastic email as an officially recommended email provider for discourse. It’s unusable like that. And 30 minute install wont work if you have to go back and reconfigure your email…

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 20, 2018, 11:10pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/10 "2018-03-20T23:10:11Z")

</div>

> [@tophee](#):
>
> And 30 minute install wont work if you have to go back and reconfigure your email…

What’s that? You should be able to run `./discourse-setup` again and just enter new mail settings.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 20, 2018, 11:17pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/11 "2018-03-20T23:17:00Z")

</div>

Well, yes. Or just edit the app.yml and rebuild (which takes time). And what takes even more time is setting up a mailgun account and setup the DNS records accordingly.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 20, 2018, 11:32pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/12 "2018-03-20T23:32:59Z")

</div>

I see. My setup script configures mallgun, and if you use digital ocean’s dns servers, the dns and mallgun activation.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 20, 2018, 11:36pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/13 "2018-03-20T23:36:53Z")

</div>

I’m with Hetzner and Google domains…

Anyway, my point was just that I see no reason why elasticemail is on the list. It’s misleading.

Looks like mailgun is the only way to go if you want free emails for a smaller forum…

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 20, 2018, 11:41pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/14 "2018-03-20T23:41:36Z")

</div>

Mallgun is what I recommend, actually, require, for my $99 desk customers.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 21, 2018, 4:48am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/15 "2018-03-21T04:48:47Z")

</div>

> [@tophee](#):
>
> What a bummer. It really looks like you can’t send a single email through elastic email without an unsubscribe link at the bottom.

Can you remove it if you pay for the service, at least?

---

<div class="post-metadata">

### Author: ![mmiada](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mmiada/32/78441_2.png) [@mmiada](https://meta.discourse.org/u/mmiada)
#### Post date: [March 21, 2018, 5:04am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/16 "2018-03-21T05:04:59Z")

</div>

no, you can’t, is mandatory.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 21, 2018, 6:20am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/17 "2018-03-21T06:20:24Z")

</div>

I asked them if I misunderstood something and here is what they answered:

> All email sent through the account requires an Elastic Email {unsubscribe} merge tag. You can learn how to add this link to your emails here: [https://elasticemail.com/support/user-interface/unsubscribe/#Unsubs](https://elasticemail.com/support/user-interface/unsubscribe/#Unsubs)
> 
> Additional information regarding this is located here: [https://elasticemail.com/resources/templates/merge-fields/](https://elasticemail.com/resources/templates/merge-fields/)
> 
> If you do not add an {unsubscribe} tag to your emails, our system will automatically place an “UNSUBSCRIBE” link at the bottom of your email.
> 
> All email is also required to have your profile’s physical address information. Please see details here:  
> [https://elasticemail.com/resources/account/email-compliance-merging…](https://elasticemail.com/resources/account/email-compliance-merging-profile-physical-address/)
> 
> If you would like to customize the placement or formatting of this information you can use the merge tag {accountaddress}.

---

<div class="post-metadata">

### Author: ![Heisleaving](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@Heisleaving](https://meta.discourse.org/u/Heisleaving)
#### Post date: [June 22, 2018, 9:29am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/18 "2018-06-22T09:29:34Z")

</div>

Although it’s an old subject, let me let here a solution for other people searching the answer to the question. You can change the unsubscribe link adding a merge field or the link. Something like  
{unsubscribe:{unsubscribe\_link}} (where unsubscribe\_link is the merge field) or  
{unsubscribe: `http://yourdomain.com/unsusbscribe_or_something_similar/` }

Source: [https://elasticemail.com/resources/guides/unsubscribe/](https://elasticemail.com/resources/guides/unsubscribe/)

---

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [June 22, 2018, 9:37am UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/19 "2018-06-22T09:37:36Z")

</div>

Is there a general unsubscribe link which can be used with cookies then?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [June 24, 2018, 10:13pm UTC](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236/20 "2018-06-24T22:13:04Z")

</div>

Why do people still keep trying to use Elasticmail? Could it be because it is still being [offically recommended](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md)?

[Next page](https://meta.discourse.org/t/remove-or-merge-elastic-email-unsubscribe/70236.md?page=2)
