Page 1 of 1

MX Record

Posted: Tue Nov 05, 2019 9:20 am
by 44MLB
When I select the new "look up MX record" option, I get the following error message at the top of the page, even though I enter a valid e-mail address and the form doesn't send.

verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); if (!$response->isSuccess()) { die ("The reCAPTCHA code is incorrect. Please try again." . "(Error: " . $response->getErrorCodes() . ")"); } } ?>

Re: MX Record

Posted: Tue Nov 05, 2019 9:45 am
by Pablo
This is not an error. This is the PHP code. You will need to publish the page to a web server.

Related FAQ:
https://forum.wysiwygwebbuilder.com/ ... 10&t=32967

Also, make sure you have the latest build of the software (11/03/2019)

Re: MX Record

Posted: Tue Nov 05, 2019 6:29 pm
by 44MLB
The page was published.

Here is an example.

Without MX Record
http://www.ramsgatelifeboat.org.uk/test/contact.php

With MX Record
http://www.ramsgatelifeboat.org.uk/test/contact-2.php

Re: MX Record

Posted: Tue Nov 05, 2019 6:37 pm
by Pablo
I do not see the code at the top of the page.

Re: MX Record

Posted: Tue Nov 05, 2019 10:22 pm
by 44MLB
Did you try sending a message via the "Contact 2" form?

Re: MX Record

Posted: Wed Nov 06, 2019 7:13 am
by Pablo
The success or error page may not contain PHP code. So, these properties cannot be set to the same page.

Re: MX Record

Posted: Wed Nov 06, 2019 8:10 am
by 44MLB
Sorry Pablo I don“t understand. The contact form works perfectly till I add the MX Record option. Then I get this error on the error message page even when I enter an e-mail address which it should except.

Re: MX Record

Posted: Wed Nov 06, 2019 8:18 am
by Pablo
This is not an error. It is the code of the form script.
The success or error page may not contain PHP, because the form script will display the page 'AS IS', so if it contains PHP code then the browser will also display the code.
The success and error page should be a different page.

See also the FAQ:
https://forum.wysiwygwebbuilder.com/ ... 10&t=32967

Also, make sure you have the latest build installed (11/3/2019)
https://www.wysiwygwebbuilder.com/download.html

Re: MX Record

Posted: Wed Nov 06, 2019 10:01 am
by 44MLB
Hi Pablo,

If there is an error in what I have done, why does everything work as it should before I tick the MX Record option?

The success and error pages are different pages.

Re: MX Record

Posted: Wed Nov 06, 2019 10:18 am
by Pablo
The code at the top indicates that there either the success or error page has PHP code.

Re: MX Record

Posted: Wed Nov 06, 2019 10:42 am
by 44MLB
Does the MX Record option create PHP code?

Re: MX Record

Posted: Wed Nov 06, 2019 10:49 am
by Pablo
yes

Re: MX Record

Posted: Wed Nov 06, 2019 10:58 am
by 44MLB
Why does the same form work before I tick the MX Record Option?

Re: MX Record

Posted: Wed Nov 06, 2019 11:01 am
by Pablo
Because the mx record option generates different code.

Tips:
- do not use PHP in the success or error page. This means that these pages may not have a form or other element that use PHP. See the FAQ.
- make sure you have the latest build of the software (11/03/2019)

Re: MX Record

Posted: Wed Nov 06, 2019 8:54 pm
by 44MLB
Hi Pablo,

I can't send any messages with the MX Record on. Always get the "No email can be sent to the specified domain (?????@???.??) message.

Re: MX Record

Posted: Wed Nov 06, 2019 9:29 pm
by Pablo
Where do you see this message?
I still see the code at the top of the page.

Did you install the latest build?

Re: MX Record

Posted: Thu Nov 07, 2019 6:58 am
by 44MLB
Hi Pablo,

You can check my latest test version of my contact form at:
http://www.ramsgatelifeboat.org.uk/test/contact-4.php

I updated to 15.2 update when it came out. I guess it didn't have the MX Record before that anyway.

Re: MX Record

Posted: Thu Nov 07, 2019 7:29 am
by Pablo
I updated to 15.2 update when it came out. I guess it didn't have the MX Record before that anyway.
Yes, but do you have the latest build of November 3, 2019?
This is a hotfix which fixes several issues.

Re: MX Record

Posted: Thu Nov 07, 2019 8:21 am
by 44MLB
I'll check the date when I get home. I didn't realize you have already done a fix on this issue or that there were changes outside the updates.

Re: MX Record

Posted: Thu Nov 07, 2019 8:43 am
by Pablo
When a user reports an issue then it is usually fixed within a few hours and a 'hotfix' is released immediately.

Re: MX Record

Posted: Thu Nov 07, 2019 9:02 am
by 44MLB
OK I just didnt know there was a issue with this.

Re: MX Record

Posted: Thu Nov 07, 2019 9:06 am
by Pablo
I idd ask you several times if you had the latest build (11/3/2019)