Previous Thread
Next Thread
Print Thread
Rate Thread
#224920 09/21/2002 1:17 PM
Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
For the first time ever I sent out a one-time mass mailing to my board's members to tell them to log in to refresh their accounts or be purged after three months of inactivity.

I got HUNDREDS of undeliverable bounce-backs from the mailing, because people had put things like "I dont have one" in the email address field, or "justme@hotmail" or "justme.hotmail.com" and hundreds of similar bad entries.

The register routine should do a simple check on the format of the email address and check that there are no spaces, one "@", at least one ".", and an acceptable suffix like "com" "net" "org" "ca" "uk" "ru" and all the other common ones. And a minimum of 4 or 5 characters long.

Asking someone to enter a correct email address would cut waaaaaay down on the number of "dead" memberships in everyone's boards.

Would this be hard to do in PHP?

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I thought there already was checks in place? I just tried registering on my test site and couldn't do it untill I put in a valid email address.

I'm using 6.1br1 at the site. Not sure about older versions but I think this was addressed a few versions back already.

Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
I'm using 6.03, and apparently people have been signing up with badly-formed email addresses under this version.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I think the syntax check for emails was added in 6.1.

Here's the check in 6.1b3:
code:
// Check the email format
if (!eregi(
"^[0-9a-z]([-_.+]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-wyz][a-z](g|l|m|pa|t|u|v|z|fo)?$",
$Email)) {
$html -> not_right($ubbt_lang['BAD_FORMAT'],$Cat);
}


Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
Okay, thanks... I'll have to wait for 6.1 to go live then, since I don't want to run beta code on my live board.

Thanks.

Sponsored Links
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
I was using the email check in 6.0.x and it worked fine. It also blocked them from using the same email addy a second time. It seemed to be working fine for me, and I did not alter that part of the code.

Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
One thing I've seen on some other sites is a confirmation check of some sort. Basically, a new member signs up and an email is sent to their email address. In the email there is a URL they click which brings them back to the site and confirms their registration. A time limit of say 7 days ( or configurable by the admin ) to confirm the email before the user is purged from the database. Once confirmed, normal business. Meanwhile, the new member can log in any time prior to confirming the email.

Does this make sense?

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
That's a good idea. You might want to repost it in the Ubb.threads Feature Suggestions forum at Infopop Community.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
One could also verify the email address actually exists using the getmxrr() function. This will check and see if an MX record exists for the host. If not there is no where for the email to go.

Joined: May 2002
Posts: 153
Member
Member
Offline
Joined: May 2002
Posts: 153
I suggest that the email has to be verified also when it is changed from the "My Home"
Why so much verification if it can be changed lattrer on with not trace of the originally coinfirmed email address?

Just another suggestion

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)