fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
May 24, 2013, 01:43:08 AM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27465 Posts in 6066 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  [SOLVED] masking emails
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [SOLVED] masking emails  (Read 1973 times)
glucas3232
Hero Member
*****
Offline Offline

Posts: 204



Applications:
« on: June 26, 2009, 04:07:13 PM »

I have a job posting site where I would like to make the email address of the person posting the job anonymous, similar to the way Craigslist offers anonymous emails that forward to the email of record.

I have the Email Module and I'm pretty sure there must be a clever way to handle this, but I am a bit stumped on how to approach (best practice) this issue.

Suggestions?
« Last Edit: July 30, 2009, 09:45:43 PM by glucas3232 » Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #1 on: June 26, 2009, 05:17:25 PM »

Just create a "contact poster" page that goes to emailPoster.php?postId=yourID, find the post, then on that page you present them with a subject/message body form, and make sure to store a hidden form value with the postId. Once you have that the form submits to some other page that looks up the post again and uses the email module to email out the subject/message to the posters email which you retrieve from the record.

Keep in mind that unfortunately this will start sending spam messages to your job posters, since spam bots will pick up your page and will auto submit the subject/message forms. The only way to prevent that is with a "Captcha" which are somewhat complex to implement.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2051
Kudos: 9743



WWW
Applications:
« Reply #2 on: June 28, 2009, 04:16:43 PM »


Keep in mind that unfortunately this will start sending spam messages to your job posters, since spam bots will pick up your page and will auto submit the subject/message forms. The only way to prevent that is with a "Captcha" which are somewhat complex to implement.

If all of this is behind a login and only able to be accessed by logged in people, then the spambot issue should be much reduced, if not eliminated
Logged

tim.webko_at_gmail.com
glucas3232
Hero Member
*****
Offline Offline

Posts: 204



Applications:
« Reply #3 on: June 28, 2009, 06:57:24 PM »

yes, it is all behind a login. I would prefer to have people just click a masked email link rather than fill out a form and all the coding needed to capture that form. But I don't want people to be able to see the job posters 'real' email address...similar to what craigslist does. Ideas on how to do this?
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #4 on: June 29, 2009, 08:31:22 AM »

It is really not something PHP can do, strictly speaking. If you want an email such as job.positing.12345@yoursite.com to go to the posters email - you will need custom mail server software. It will need to process the incoming mail, and match mailbox patterns - then connect to your database for the real email address and forward the message. Overall it is not something that you can do with PHP for sure (PHP is not a mail server), and I don't know if any mail servers out there offer this feature out of the box.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
glucas3232
Hero Member
*****
Offline Offline

Posts: 204



Applications:
« Reply #5 on: June 29, 2009, 08:55:15 AM »

yeah, I am beginning to see the complexity of this and finding a sound approach that does not require form processing.
Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2051
Kudos: 9743



WWW
Applications:
« Reply #6 on: June 29, 2009, 03:27:20 PM »

Building a web form that doesn't show the final email address is pretty easy, but having anonymous emails does need the mail server to do the work.

For the web form, you can pass the jobID as a match for the email address for that job post, and remail the form from there.
Logged

tim.webko_at_gmail.com
glucas3232
Hero Member
*****
Offline Offline

Posts: 204



Applications:
« Reply #7 on: June 29, 2009, 03:49:33 PM »

seems the only reasonable approach.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!