# fields available in emails

**URL:** <https://forum.mautic.org/t/fields-available-in-emails/6181>\
**Category:** Product Support\
**Created:** [October 11, 2016, 3:31am UTC](https://forum.mautic.org/t/fields-available-in-emails/6181 "2016-10-11T03:31:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/trops/32/3998_2.png) [@trops](https://forum.mautic.org/u/trops)\
**Post date:** [October 11, 2016, 3:31am UTC](https://forum.mautic.org/t/fields-available-in-emails/6181/1 "2016-10-11T03:31:33Z")

</div>

Hi Guys,  
  
  
  
Im trying to create unsubscribe links in each campaign email. I don’t want the user to unsubscribe from ALL emails, just the emails associated with a particular campaign if they choose not to receive them.  
  
  
  
I was curious if there was a way to get the id of the campaign using the bracket syntax similar to the contactfield= …  
  
  
  
If not, I can hardcode it, but would be a cool feature to have the segment, campaign, and other pertinent information available to identify an email.  
  
  
  
I want to create an unsubscribe link that sends the user to my custom page that will remove them from the campaign from which they received the email.  
  
  
  
Thanks!  
  
John

---

<div class="post-metadata">

**Author:** ![trops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/trops/32/3998_2.png) [@trops](https://forum.mautic.org/u/trops)\
**Post date:** [October 11, 2016, 3:31am UTC](https://forum.mautic.org/t/fields-available-in-emails/6181/2 "2016-10-11T03:31:33Z")

</div>

Hi Guys,

Im trying to create unsubscribe links in each campaign email. I don’t want the user to unsubscribe from ALL emails, just the emails associated with a particular campaign if they choose not to receive them.

I was curious if there was a way to get the id of the campaign using the bracket syntax similar to the contactfield= …

If not, I can hardcode it, but would be a cool feature to have the segment, campaign, and other pertinent information available to identify an email.

I want to create an unsubscribe link that sends the user to my custom page that will remove them from the campaign from which they received the email.

Thanks!  
John

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [October 11, 2016, 12:10pm UTC](https://forum.mautic.org/t/fields-available-in-emails/6181/3 "2016-10-11T12:10:29Z")

</div>

This should work for you  
[https://medium.com/@NinJoan/simplest-way-to-make-a-unsubscribe-system-for-mautic-4f307850cce2](https://medium.com/@NinJoan/simplest-way-to-make-a-unsubscribe-system-for-mautic-4f307850cce2)

---

<div class="post-metadata">

**Author:** ![trops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/trops/32/3998_2.png) [@trops](https://forum.mautic.org/u/trops)\
**Post date:** [October 13, 2016, 1:45am UTC](https://forum.mautic.org/t/fields-available-in-emails/6181/4 "2016-10-13T01:45:28Z")

</div>

Yes, I saw this post, very cool stuff, my issue is I don’t want the users to see the names of the campaigns. I have several based on aspects of the user (beginner, expert, etc etc) and don’t want to necessarily let them know what campaign or segment they are being added to.

I suppose I could make this generic, and the form might have a hidden field? Ill try it…

Is there a list of available fields that can be used in the email?
