| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Check MX for email addresses | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Check MX for email addresses
This takes the email validation checking one step further. It checks to see if you can actually deliver email to the address the customer specifies by looking for an MX record.
Why? Keeps people from putting in bogus emails that will just bounce back to you. Warning! Backup your Xcart, this mod is easy but could potentially cause your dog to be abducted by smurfs. 1. Backup include/func.php to include/func.php.bak 2. Change this function in include/func.php from this: Code:
Code:
Note: This does not work on Windows Servers
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#2
|
|||||||
|
|||||||
Thank you, will try this very soon.
__________________
-------------------- X-Cart Gold 4.1.11 Linux/Apache -------------------- |
|||||||
#3
|
|||||||
|
|||||||
this one all tested and working ok?
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#4
|
|||||||
|
|||||||
Quote:
Donavichi, I just did preliminary tests such as the following. 1. Correct email in newsletter subscribe box (pass) 2. Bad syntax in subscribe box (fail) 3. Bogus domain in subscribe box (fail) Did the same three tests for registering and it works fine. I think there may be one caveat. When a user tries to unsubscribe from a news letter, if their email (domain) onced worked and now does not, I don't think it will let them unsubscribe as xcart checks the syntax of the email before it tries to unsubscribe it. Theoretically, this should not be a problem, because if they have not MX record then they aren't getting your emails anyway.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#5
|
|||||||
|
|||||||
excellent news!
That's a cracking mod there then... Thank you.
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#6
|
|||||||
|
|||||||
Ive got it working fine on the newsletter subscription but it doesnt seem to affect customer registrations?
i.e i can enter an email address of sghdgfhdsfgew@fgsdfg.com and it will still accept it. Any ideas or is it just me?
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#7
|
|||||||
|
|||||||
Quote:
I'm running 4.012, when I try to register with that email address I get the error box at the top that says "Please make sure you properly filled in all the required fields!" and the "<<" arrows next to the email address with the error message of "Sorry, that email address doesn't appear to be correct. " Can you enter in an email like "johnson&@aol.c2m"? See if it does a syntax check. If that success then your version is not doing email checking during registration, if it fails then you have to hunt down how Xcart is doing email validation during registration. Sorry
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#8
|
|||||||
|
|||||||
Tip Top!
Works for me on Gold 4.0.17 - Top MOD!!
__________________
version 4.0.19 php 5 |
|||||||
#9
|
|||||||
|
|||||||
Hi
Not working on the newsletter subscription. If you add anything with a .com, .co.uk, etc it will go through. Example: abc@123.com : 123@abc.co.uk all pass
__________________
X-Cart V4.0.18 PHP 4.3.10 MySQL Server 4.0.22 Apache/1.3.33 (unix) OS - Linux |
|||||||
#10
|
|||||||
|
|||||||
You're right!!
I didn't check that - you're right it doesn't seem to work on the newsletter subscription...
__________________
version 4.0.19 php 5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|