Page 1 of 1

Contact form/Mail body

Posted: 10 Dec 2019, 04:48
by metallissimus
Hello,

in the mail settings I have the following code for the mail body:
Code
<strong>Von:</strong> %name% <a href='mailto:%email%'>%email%</a>
<br>
<br>
<strong>Nachricht:</strong>
<br>
<br> %message%
When I get a message via the contact form, all the formatting is applied correctly, but there's an additional entry "page" and I don't understand why:
Von: Daniel Bollinger d[...]@gmx.de

Nachricht:

Test

page
https://www.danielbollinger.de/Kontakt/

Re: Contact form/Mail body

Posted: 10 Dec 2019, 05:28
by mjau-mjau
The 'page' item was added because many users wanted to know from which page the contact form message was sent. It is added to the email automatically, just like any input fields you add to the form itself.

You can remove it by editing the file /app/x3.api.php line 170:
Code
$ignore = array('honey1', 'honey2', 'template', 'template_strict', 'template_subject', 'action', 'recipient');
Add the 'page' item:
Code
$ignore = array('honey1', 'honey2', 'template', 'template_strict', 'template_subject', 'action', 'recipient', 'page');