LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2006, 11:55 AM   #1
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
Help. How to do the email verfication in a website project?


Hi,

I'm writing a website project at home in PHP. I'm using Apache web server running on Linux and access it through my windows 2000 through LAN.

I'd like to have the feature that when a new user registers, he/she gets an email in his/her email account with a link, where he/she can click and verify that the email he/she provides is real email address.

I don't know how to implement that? Do I need a mail server on my Linux? Can someone with more experience give me some hints or point me to some material where I can read? I would be very appreciated. thanks.


Joaquin
 
Old 02-08-2006, 04:21 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.

You need to use mail() PHP function. To make it work correctly you need a SMTP server (sendmail, qmail etc). It doesn't have to be installed on the machine with your WWW server, you just need access to one.

The part with link is an easy one. A quick solution would be to generate a random number for each new user, place it in the database (along with a timeout) and send to the user. The value should be a parameter in a request to the WWW server. When the parameter matches the value in database, you have the right user.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenVZ Project Introduces Website to Support Operating System Virtualization Technology for Open Source Community LXer Syndicated Linux News 0 12-16-2005 01:31 AM
Best mailer to use for a website with PHP email forms gbkyle Linux - Software 1 07-07-2005 04:00 AM
Internship Project SuSe 9.2 Help... Email Server Setup. Stiltz Linux - Networking 8 03-15-2005 07:11 PM
Shell script, validating email and website Joey^s Programming 5 12-04-2004 05:31 PM
Best Linux for setting up an email/ftp/website server? Cyberian Linux - Newbie 2 09-11-2004 07:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration