# Can i use contact information in email template subject?

**URL:** https://forum.mautic.org/t/can-i-use-contact-information-in-email-template-subject/16978
**Category:** General Discussion
**Created:** [November 11, 2020, 2:08pm UTC](https://forum.mautic.org/t/can-i-use-contact-information-in-email-template-subject/16978 "2020-11-11T14:08:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![imog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/imog/32/3813_2.png) [@imog](https://forum.mautic.org/u/imog)
#### Post date: [November 11, 2020, 2:08pm UTC](https://forum.mautic.org/t/can-i-use-contact-information-in-email-template-subject/16978/1 "2020-11-11T14:08:23Z")

</div>

I want to send an email to the company mailadress of a contact when he visits some page. Currently i use “Send email to user” for this, but there i can only enter static addresses, but not something like {contactfield=companyemail}‍

I’d also like to use some contact information to be added to the mail subject (e.g. “Mr. Arnold has visited this page”).

---

<div class="post-metadata">

### Author: ![daveusername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/daveusername/32/3730_2.png) [@daveusername](https://forum.mautic.org/u/daveusername)
#### Post date: [November 11, 2020, 3:52pm UTC](https://forum.mautic.org/t/can-i-use-contact-information-in-email-template-subject/16978/2 "2020-11-11T15:52:07Z")

</div>

For part 1, I belive the way to handle that is to add the mautic tracker to the target webpage. You’d then create a campaign that watches for visits to the tracked page and sends an email to the visitors. You could also add those visitors to a segment, or use “stages” to promote a user from webpage visitor through some lifecycle. I could be off about this advice, I haven’t set it up myself yet.

For part 2, you simply add the the dynamic data into the subject field. Use the | pipe to add a default value in case the variable is empty:  
Test Email #5 - Hello `{contactfield=firstname|There}`

Check the section on “Email Builder” which covers the subject line:

> **[Managing emails](https://docs.mautic.org/en/channels/emails/managing-emails)**
>
> . Email Overview. The email overview allows ata-glance information regarding the success or failure of a particular email. You can quickly see relevant information in regards to opens, bounces, successful click-throughs and other important...

  

> **[Variables | Mautic Community Documentation](https://docs.mautic.org/en/setup/variables)**

Hope this helps move you forward. Others may have better answers.  
-d
