Jump to content

Email Verification

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I've created the anti spam image from the help of you guys:

http://forum.codecal...-generator.html


Now, how do I go about creating a verification email with all kinds of wierd characters and symbols at the end like you receive from these forums and everywhere else you sign up?

#2
Guest_doodlebug_*

Guest_doodlebug_*
  • Guests
Came accross this a couple of days ago might be worth considering:

http://www.howtocrea.../emailtools.php - demo

http://www.howtocrea...file=4&action=0 - download

#3
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
After thinking about it for a few minutes I came up with an idea, but im not sure its the same way the forums do it. I dont have any smaple code but ill walk you through what i would do.

1) Create a random function that generates a random string say 20 characters long and returns the value.

2) When the user registers, have the unique string generated and pared with the user in the database. Maybe I would setup the database like this:

users:
id     username       password             email                      valid
1      sidewinder      1235456       Sidewinder@asdf.com    12asd54f1d$ad5fd1112

where valid is the random string.

3) Auto generate the email that sends a link like:

Quote

Click the following link to activate your account:
http://www.yourdomai...54f1d$ad5fd1112

4) Have the validate.php script check to see if $_GET['validation_number'] is the same as the string paired with that user [Sidewinder] in the database

If it is the same, have the value of valid updated to "yes" and just make your login session checks to see if the user is valid

of course you could just create a table of queed users that are "invalid" and when they go to validate their account, the validate.php could do the stuff above and then transfer their db information to the users table that are "valid" users, that way you would have the valid column in your users table taking up extra bytes...but i think you get the general idea

just my 2 cents

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

doodlebug said:

Came accross this a couple of days ago might be worth considering:

http://www.howtocrea.../emailtools.php - demo

http://www.howtocrea...file=4&action=0 - download

I believe thats to verify what the user inputed is an email address. If I understood correctly, he wants to make the user activate their account by clicking on a link sent to them via email.

#5
Ronin

Ronin

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
Sidewinder has it about the way I thought of doing it when I read this post.

Check Here


Many applications in the field of Web development need to validate email addresses. While this can be done in a variety of ways, one simple but effective way involves writing your own functions in PHP. Alejandro Gervasio explains this approach.

Within the huge and fascinating field of Web development, one of the most common tasks that many applications have to deal with is, undoubtedly, verifying whether a user email address is valid. Certainly, this should sound very familiar to most Web developers, whether they are setting up their first consciously-coded script or implementing full-blown applications required to handle more complex processes. Whatever the case, validating a visitor's email address to see if it belongs to a real domain is always a good step to help you avoid, at least partially, several possible problems that arise when applications are receiving incoming bogus data. From cluttering up databases with invalid information, to sending newsletters or similar content to email addresses at nonexistent domains, headaches are surely going to come up from receiving fake email.

Several approaches can be taken to address the problem, depending on the level of complexity desired for the validation itself. If the application is going to make use of a basic level of validation, a quick-and-dirty way to handle the situation might be to implement a simple PHP function that performs pattern matching to a standardized email address format, as we have seen many times. However, when a deeper and more complex validation is required, we should take a look at well-trusted validation classes, such as Pear’s HTML_Quick Form class, or many other validation classes widely available out there.

The third option involves writing our own set of functions for in-deep email address checking, which can be considered an intermediate solution between the two above described. This approach is versatile and portable enough to be used whether we want to expand basic validating functions or add extra functionality to existing classes.


#6
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Sidewinder, thats exatyl the typical model used in things such as a forum. If you go with what Sidewinder said, you wont be hard off.

#7
businessman332211

businessman332211

    Newbie

  • Members
  • Pip
  • 4 posts
That's called a captcha, they take a few minutes to create or you could use third party software.

#8
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

businessman332211 said:

That's called a captcha, they take a few minutes to create or you could use third party software.

A CAPTCHA is a random string of characters generated over an image, here is an earlier post that discussed that

http://forum.codecal...-generator.html