martynw Posted October 13, 2005 Posted October 13, 2005 I am trying to create a double-opt in e-mail list so that when people want to join my list they go through the following process: 1. Enter their e-mail on my site. 2. A script sends them an e-mail syaing something like: "if you really want to joing this list press reply" 3. If they reply to this e-mail their e-mail address is added to my list. I understand that the way to do this is via e-mail piping, i.e. I arrange for their 'opt-in' e-mail to go a specific address, e.g optin@****. Somehow I create a script that 'intercepts' this email and 'pipes' it to a script for validation and adding to a MySQL database. My questions is, how do I 'pipe' the e-mail, addressed to one specific address, to a script? I will still need to POP other emails (e.e martyn@****) using my e-mail client. Quote
TCH-Don Posted October 13, 2005 Posted October 13, 2005 Welcome to the forum I can't help with the piping, but you may want to look into Dada Mail as a list manager. Quote
martynw Posted October 13, 2005 Author Posted October 13, 2005 Thanks for the welcomes. I will check out DADA Mail. I did a a little experimenting and the answer to the question is to, in CPANEL, set up an e-mail forward to "| php -q /path/to/public_html/emailpipe.php" where emailpipe.php is the script you want to run. If you are not sure about the path, take a look at one of the .htaccess files and you should see it there. Quote
TCH-Bruce Posted October 13, 2005 Posted October 13, 2005 Welcome to the forums martynw The path would be: /home/yourTCHlogin/public_html/emailpipe.php Provided that you put the php file in your public_html folder. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.