E-mail Piping For Double Opt-in E-mail List

liunx

Guest
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:<br /><br />1. Enter their e-mail on my site. <br />2. A script sends them an e-mail syaing something like: "if you really want to joing this list press reply"<br />3. If they reply to this e-mail their e-mail address is added to my list.<br /><br />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.<br /><br />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.<!--content-->
Welcome to the forum <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br />I can't help with the piping, but<br />you may want to look into <a href="http://mojo.skazat.com/" target="_blank">Dada Mail</a><br />as a list manager.<!--content-->
Welcome to the forum, martynw. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums, martynw<!--content-->
Thanks for the welcomes.<br />I will check out DADA Mail.<br />I did a a little experimenting and the answer to the question is to, in CPANEL, set up an e-mail forward to <br />"| php -q /path/to/public_html/emailpipe.php"<br />where emailpipe.php is the script you want to run.<br />If you are not sure about the path, take a look at one of the .htaccess files and you should see it there.<!--content-->
Welcome to the forums martynw<br /><br />The path would be:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro-->/home/yourTCHlogin/public_html/emailpipe.php<!--colorc--></span><!--/colorc--><br /><br />Provided that you put the php file in your public_html folder.<!--content-->
Welcome to the forums, martynw! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
 
Back
Top