Search…

X3 Photo Gallery Support Forums

Search…
 
metallissimus
Experienced
Topic Author
Posts: 53
Joined: 17 Oct 2019, 06:54

Contact form/Mail body

10 Dec 2019, 04:48

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/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 12191
Joined: 30 Sep 2006, 03:37

Re: Contact form/Mail body

10 Dec 2019, 05:28

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');