# Send E-Mail using data from an forms input fields

**URL:** <https://forum.mautic.org/t/send-e-mail-using-data-from-an-forms-input-fields/17384>\
**Category:** General Discussion\
**Created:** [December 12, 2020, 6:45pm UTC](https://forum.mautic.org/t/send-e-mail-using-data-from-an-forms-input-fields/17384 "2020-12-12T18:45:15Z")\
**Posts on this page:** 3\
**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:** [December 12, 2020, 6:45pm UTC](https://forum.mautic.org/t/send-e-mail-using-data-from-an-forms-input-fields/17384/1 "2020-12-12T18:45:15Z")

</div>

I’d like to ease the work of our sales department, which will send out an “offer of the day” or “product of the day” to a specific segment. The mail should be in the same layout (template) whith only the productname, the price and link to the shop changed.

Therefore i would like to create a simple form, where the sales staff can enter only the variable data of the mail-template, choose a segment from a dropdown-list of available segments (could be static references or IDs) and send it.

This should create a email (campaign).

So is this doable with Mautic only or do i need to have some programming around it? Creating a form would be easy and sending forms data to some middleware (PHP script) which may then create API calls to do what i like. But before starting programming i would like to rule out to not invent something already exsits 🙂

Just to have it noted: our sales guys are not smart enough to handle Mautic GUI… they need something reeeealy easy.

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [November 15, 2021, 9:18am UTC](https://forum.mautic.org/t/send-e-mail-using-data-from-an-forms-input-fields/17384/2 "2021-11-15T09:18:46Z")

</div>

That’s interesting.  
You can use the twigtemplates plugin for the email.  
But then you need to write into the twigtemplate fields via the api or somehow.  
Basically you need to define system-variables which can be updated via a form manually.

This is not possible with Mautic out of the box. If you send a form it always refers to a contact - not to your system.

IMHO you need to build a small plugin to do that.

---

<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:** [December 27, 2021, 7:00am UTC](https://forum.mautic.org/t/send-e-mail-using-data-from-an-forms-input-fields/17384/3 "2021-12-27T07:00:50Z")

</div>

Meanwhile i found a way to do this through the API. You can send an list of “tokens” which then are usable as “{{ token\_key }}” in a template.
