473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

php and email authentivation

hi all,

i need a framework to set up a web service with email authentication:
that is, I need the user to insert his/her email, I send him/her a code
via email and when the confirm email arrives, the user is confirmed:
it is done in various web services, nothing new :-(

But how can I do it? I have seen various CMS which get the
subscription,
but not the mail confirmation: I obviously need to intercept incoming
mail to
to check, but how is it done in php?

thanks
giammy

Sep 6 '06 #1
1 1017
giangiammy wrote:
hi all,

i need a framework to set up a web service with email authentication:
that is, I need the user to insert his/her email, I send him/her a code
via email and when the confirm email arrives, the user is confirmed:
it is done in various web services, nothing new :-(

But how can I do it? I have seen various CMS which get the
subscription,
but not the mail confirmation: I obviously need to intercept incoming
mail to
to check, but how is it done in php?

thanks
giammy
It depends on your MTA. If your agent allows it, you could pipe the
incoming message to a batch file and parse the incoming mail. If not,
you can run a cron job every few minutes to check the mail queue and get
the mail.

In the latter case it depends if you're using IMAP or POP3 mail. You
can look up the necessary commands in the RFC's.

For instance, for POP3 you would want to open a socket to the mail
server's port 110, issue the USER and PASS commands. Then you can LIST
the mail in the box and RETR them one by one. When done with a message,
you can DELE it. When you've completed processing of the mailbox you
can QUIT.

You can also execute these commands from a telnet session to see what
the responses look like.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
by: BSG-SMTP-Gateway | last post by:
The following message sent by this account has violated system policy: Connection From: 64.253.55.90 From: python-list@python.org To: terriss@birdsall.com, q4dzsAEAAAAA@birdsall.com,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.