E-mail forwarding in PHP?
Posted: Wed Aug 14, 2002 4:29 pm
Oh good and merciful PHP gurus, please indulge this PHP newbie's ignorance. 'Tis my first post, and you wouldn't want to hurt my feelings, would you?
I've searched the forums, I've searched the mighty Google, I've been to yonder and yore, and I've read books mighty and bore, but still can't find anything close that can answer my dilemma: "Can e-mail forwarding be done in PHP?"
You see, good and merciful PHP gurus, I've decided that the only way I can become like any of you is if I get my hands dirty and build my own site from scratch using PHP and MySQL. My first, only and current PHP project is a classified ads site. Most everything is going great so far, except for my e-mail problem.
What I'm doing right now is this:
If an ad poster places an ad on my site, I hide the person's e-mail address and replaces it with an auto-generated "fake" e-mail address instead. So if "john_doe@yahotmaol.com" places an ad, people reading his ad won't see "Send an e-mail to john_doe@yahotmaol.com", instead, if his ad is ad # 200, people will see something like:"Send an e-mail to ad200@mysite.com."
And therein lies my problem. "ad200@mysite.com" is not a real e-mail account on my site, so I know that messages addressed to it will end up in "catchall@mysite.com." From there, how do I relay John Doe's messages to his real e-mail address?
I've seen sites that have this feature, I just can't for the life of me, figure out how to start implementing this on my site.
Can anyone point me in the right direction please? Just a general "#1 Do this; #2 Do that; #3 Do this next; #4 You're done" kind of thing.
"Free beer", although appreciated, is not necessary, just some guidance from the good and merciful PHP gurus lurking around these forums.
If this cannot be done in PHP and I'm therefore posting in the wrong forum, please, please, please my apologies. But if there's some PHP thingy that can do the job, then thank you so much in advance for whatever bit of enlightenment will be thrown my way.
I've searched the forums, I've searched the mighty Google, I've been to yonder and yore, and I've read books mighty and bore, but still can't find anything close that can answer my dilemma: "Can e-mail forwarding be done in PHP?"
You see, good and merciful PHP gurus, I've decided that the only way I can become like any of you is if I get my hands dirty and build my own site from scratch using PHP and MySQL. My first, only and current PHP project is a classified ads site. Most everything is going great so far, except for my e-mail problem.
What I'm doing right now is this:
If an ad poster places an ad on my site, I hide the person's e-mail address and replaces it with an auto-generated "fake" e-mail address instead. So if "john_doe@yahotmaol.com" places an ad, people reading his ad won't see "Send an e-mail to john_doe@yahotmaol.com", instead, if his ad is ad # 200, people will see something like:"Send an e-mail to ad200@mysite.com."
And therein lies my problem. "ad200@mysite.com" is not a real e-mail account on my site, so I know that messages addressed to it will end up in "catchall@mysite.com." From there, how do I relay John Doe's messages to his real e-mail address?
I've seen sites that have this feature, I just can't for the life of me, figure out how to start implementing this on my site.
Can anyone point me in the right direction please? Just a general "#1 Do this; #2 Do that; #3 Do this next; #4 You're done" kind of thing.
"Free beer", although appreciated, is not necessary, just some guidance from the good and merciful PHP gurus lurking around these forums.
If this cannot be done in PHP and I'm therefore posting in the wrong forum, please, please, please my apologies. But if there's some PHP thingy that can do the job, then thank you so much in advance for whatever bit of enlightenment will be thrown my way.