By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,822 Members | 729 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,822 IT Pros & Developers. It's quick & easy.

Account activation via email

P: n/a
I'm supposed to do the account activation via email. I mean *not*
sending the activation link like http://foo.com/foo.php?actcode=foo.
But, I would like it to be like <actcode>-a*********@domain.com or so.
I remember, once I did it by checking the POP3 server. Now, I totally
forgot how I did it in PHP or server. Also, I couldn't find any
solution/script by Googling. Anyone has the idea?

TIA.

---
"If there is a God, he must be a sadist!"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello Rajesh,

R. Rajesh Jeba Anbiah wrote:
I'm supposed to do the account activation via email. I mean *not*
sending the activation link like http://foo.com/foo.php?actcode=foo.
But, I would like it to be like <actcode>-a*********@domain.com or so.


[ Im assuming a Unix server here ]

In the <actcode>-a*********@domain.com" case, I think you would need
to plug your code into the e-mail system. I think it will be easier if
you use a single e-mail address ac********@domain.com and put the
<actcode> in the subject line of the activation e-mails.

If you have shell access on the machine, you can then put a line
in the .forward file for the "activation" user that tells the e-mail
system to pipe the e-mail to a PHP command line script that you wrote.
In that script you can then do anything you want with the e-mail.

I don't remember the exact syntax for the .forward file,
but I think you can find it on Google.

Best regards,

Eric
Jul 17 '05 #2

P: n/a
Eric Veltman <eric@[RemoveThis]veltman.nu> wrote in message news:<vp************@corp.supernews.com>...
Hello Rajesh,

R. Rajesh Jeba Anbiah wrote:
I'm supposed to do the account activation via email. I mean *not*
sending the activation link like http://foo.com/foo.php?actcode=foo.
But, I would like it to be like <actcode>-a*********@domain.com or so.


[ Im assuming a Unix server here ]

In the <actcode>-a*********@domain.com" case, I think you would need
to plug your code into the e-mail system. I think it will be easier if
you use a single e-mail address ac********@domain.com and put the
<actcode> in the subject line of the activation e-mails.

If you have shell access on the machine, you can then put a line
in the .forward file for the "activation" user that tells the e-mail
system to pipe the e-mail to a PHP command line script that you wrote.
In that script you can then do anything you want with the e-mail.

I don't remember the exact syntax for the .forward file,
but I think you can find it on Google.


Thanks a lot!

---
"If there is a God, he must be a sadist!"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.