# Include campaign name in email sent from campaign

**URL:** <https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [February 5, 2023, 3:08pm UTC](https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960 "2023-02-05T15:08:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aramallo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aramallo/32/9033_2.png) [@aramallo](https://forum.mautic.org/u/aramallo)\
**Post date:** [February 5, 2023, 3:08pm UTC](https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960/1 "2023-02-05T15:08:43Z")

</div>

**Your software**  
My Mautic version is: 4.4.5  
My PHP version is: 7.4.33  
My Database type and version is: MariaDB something

**Your problem**  
My problem is:

- I want to send myself an email whenever a person submits a form on my site
- My site has multiple forms
- There is one campaign per form, and they all have a _send email_ action, which is how I send myself emails

The problem is that I can’t tell which form was submitted because this is what the email looks like:

> Someone submitted a form:
> 
> - **First Name:** {contactfield=firstname}
> 
> - **Last Name:** {contactfield=lastname}
> 
> - **Phone:** {contactfield=phone}
> 
> - **Email:** {contactfield=email}

I could of course create a separate email item for each campaign that manually includes the name of the form/campaign, but that’s annoying especially since the emails will all be basically identical.

Some I’m wondering, is there a token that I can add to identify the source of the campaign and/or form which sent the email? E.g. like `Someone submitted a form for {campaign}` or `New submission for form {form}` (or a better solution?)

Thanks!

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [February 6, 2023, 7:24pm UTC](https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960/2 "2023-02-06T19:24:47Z")

</div>

I do it differently and you might want to look into form properties under “Action” to have it send you an email.

When I create a form, I use the action under the form properties to send me an email when a form is submitted. This way I don’t have to depend on campaign or cronjob to send a form to me and I can just duplicate the same form for a new form on our site which already have the action “send email” set up on it.

---

<div class="post-metadata">

**Author:** ![aramallo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aramallo/32/9033_2.png) [@aramallo](https://forum.mautic.org/u/aramallo)\
**Post date:** [February 7, 2023, 1:19pm UTC](https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960/3 "2023-02-07T13:19:14Z")

</div>

Thanks!

I tried doing that before, but ran into the same issue where I’d have to make a custom email every time. However, I just looked again and noticed there’s a separate “Send form results” action which does exactly what I need. It even lets you reply to the contact directly 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [February 9, 2023, 1:19am UTC](https://forum.mautic.org/t/include-campaign-name-in-email-sent-from-campaign/26960/4 "2023-02-09T01:19:44Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
