Customizing SMF > Modifications and Packages
Advanced Contact Form
Michael Kopka:
i integrated the mod in my board but for testing it always says the email adress is invalid. i tried with some different ones. whats wrong with it.
here my board: www.autotrac.org [nofollow]
Deprecated:
Are you running under Windows? Please describe your configuration.
Michael Kopka:
running under linux ---> http://www.hosteurope.de [nofollow] webpack
Deprecated:
The last part of the validity check tests for a valid A or MX record for the domain part of the sender's email address. Obviously your setup is failing at that point. I presume that is something to do with your web hosting setup that checkdnserr() is not working correctly.
The best thing you could do is to just take out the A/MX record check, and your email addresses will still be tested to see if they are legally constructed, just no test to see if it's a real domain.
In Contact.php find and delete this code:
--- Code: --- if (function_exists('checkdnsrr'))
if (!(checkdnsrr($domain, 'MX') || checkdnsrr($domain, 'A'))) return false; // domain does not have a valid A or MX record
else
if (!(win_checkdnsrr($domain, 'MX') || win_checkdnsrr($domain, 'A'))) return false; // domain does not have a valid A or MX record
--- End code ---
That should get you in operation.
Michael Kopka:
Now it works. Just a little delay in sending but it's okay ... Thanks a lot.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version