Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-09-11 18:00:51

thomasl
Member
Registered: 2014-09-11
Posts: 9

CE4-Pages - Contact mail information wrong

Hello,

new to CE4-Pages I just managed to setup a small test site. I even managed to get the contact page running, however, the information in the mail received is not correct.

In the mail, the source is mentioned as below:

  From Page: http://www.abc.de:81/contact.php

The address is ok, but the port number is not. In my configuration I have port redirection to my internal web server. The external port 80 is mapped to the internal port 81 (Buffalo Terastation). So if I try to access the external dns name with the internal port number, it does not work. I think I would need to get rid of the port number in the "From Page:" line.

How could I achieve this? What would be the best way, in order that after future CE4-Pages updates it would still work?

Thanks for any help
Thomas

Offline

#2 2014-09-11 20:27:50

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: CE4-Pages - Contact mail information wrong

hi Thomas, I'm struggling to understand what you're describing.  Firstly, what is the actual URL of your contact form?
Where does it display 81, and in what way is it failing?

Offline

#3 2014-09-11 21:12:17

thomasl
Member
Registered: 2014-09-11
Posts: 9

Re: CE4-Pages - Contact mail information wrong

Hello Ben,

pls see below the entire message, that i receive in my Inbox:

Name: Thomas
Email: thomas@abc.de
Message: Tvb
From Page: http://www.abcd.de:81/contact.php
Sender IP Address: 31.27.120.221

(I have replaced the actual domain names for privacy.)

So in the mail I receive a link to "http.//www.abc.de:81" is included. The ":81" is the TCP port number. Standard HTTP is 80. I have 81 on my system, this is the way it was configured.

The server is on my intranet. In order to access it from the Internet, I need to configure the port forwarding feature on my router. The effect is, that any request to "www.abc.de" (implicit port is 80 so this is equivalent to "www.abc.de:80" will be redirected to my internal web server, which has a different address and is responding at port 81. In this way, my server is only exposed to HTTP on the Internet.

However, when accessing the server at port 81 from the Internet, the port forwarding is not working, since it was not configured that way.

Obviously I could add another router rule. Or I could reconfigure my internal server to use different ports. Or I could just leave it alone, since I probably will not use the link in the incoming email.

I saw in the contact.php file the "currentPageURL" function, which is probably providing the "From Page" information, however, when I would change this it would be deleted after the next update, I guess.

Offline

#4 2014-09-11 22:08:39

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: CE4-Pages - Contact mail information wrong

Hi Thomas, thanks for the further explanation. The URL is constructed using the port information of the server that the software is running on. This should be resolved when you move from your home setup to your production environment.

Offline

Board footer

Powered by FluxBB