# Creating a simple contact form

**URL:** <https://forum.mautic.org/t/creating-a-simple-contact-form/1592>\
**Category:** Product Support\
**Created:** [February 27, 2015, 3:13pm UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592 "2015-02-27T15:13:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [February 27, 2015, 3:13pm UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592/1 "2015-02-27T15:13:30Z")

</div>

I’d like to create a simple contact form to replace my contact form in Joomla!. I’m using the Joomla! Mautic plugin which works like a charm for tracking and embedding forms.  
  
  
  
In the form I’m asking users for their first name, last name, email address and message.  
  
  
  
After submitting the form updates/creates the lead. This works perfectly.  
  
The user is redirected to a thankyou page, again, works perfectly.  
  
  
  
My problem is that I’d also like to send an email to an admin with the user’s details along with his message.

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [February 27, 2015, 3:13pm UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592/2 "2015-02-27T15:13:30Z")

</div>

I’d like to create a simple contact form to replace my contact form in Joomla!. I’m using the Joomla! Mautic plugin which works like a charm for tracking and embedding forms.

In the form I’m asking users for their first name, last name, email address and message.

After submitting the form updates/creates the lead. This works perfectly.  
The user is redirected to a thankyou page, again, works perfectly.

My problem is that I’d also like to send an email to an admin with the user’s details along with his message.

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [February 27, 2015, 3:29pm UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592/3 "2015-02-27T15:29:04Z")

</div>

Never mind, cracked it.

Created an email. Included the fields in the Emailbuilder -\> Forms -\> Submission results -\> Form element name (‘message’)

---

<div class="post-metadata">

**Author:** ![robinaitken1356](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@robinaitken1356](https://forum.mautic.org/u/robinaitken1356)\
**Post date:** [May 14, 2015, 9:35am UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592/4 "2015-05-14T09:35:38Z")

</div>

Hi,

I created a similar form (first name, last name, email & message) and copied the form code into my (external) page. I tried a few submits and it seemed to work perfectly, creating new leads and emailing me the messages.

However I have just noticed some new leads appearing in Mautic where the name is an IP address (not mine) and all other fields are blank. When I click on one of these in the leads screen I get a 500 internal server error.

The only other thing I have implemented on my site is a “mtracking.gif” call, but I don’t think it is related to that?

Help!

Many thanks,

Robin

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/creating-a-simple-contact-form/1592/5 "2020-02-02T22:59:57Z")

</div>


