On Mon, 14 Oct 2002, Marvin Pascual wrote: > I don't know if the subject is right but what I need is your suggestion > regarding on how I can include a "confirmation link" in a text format e-mail > message. This is the scenario: >
You should look at how mailing list managers work. Usually you need to embed a alphanumeric code in the body or header of the mail (that should be easily parsed by your favorite scripting language). You should generate the alphanumeric code unique for each email. A crypt, md5 or sha1 hash of the email and some other string should work. Create a system email for the reply-to and this should be piped to a script that parses the mail for the alphanumeric code. When the script detects the code, it should automatically update your database that the email is valid. You should also create a link that submits the code to a cgi-script that also updates your database. Some people prefer to click a link than reply to a mail so its better to give them two options. This is easy to do in perl. There are a lot of modules already for creating the hash, parsing the mail, updating the database. _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
