OmicronLab Posted August 13, 2003 Share Posted August 13, 2003 Hello, I have been using a free mailing list service from www.topica.com. This service let me to send email to subscribe/unsubscribe. e.g. sending mail to subscribe_avro@omicronlab.com will forward it to avro_subscribe@topica.com and subscribe the sender. I need to create my own service now, as the free service provider serves nasty ads. I found a lot of php script for creating a mailaing list, but no one gives the facility to send email to subscribe. At last, I found an example about how to do it. A nice tutorial is located @ http://evolt.org/article/Incoming_Mail_and...7914/index.html. But, Mad!!! I cannot understand anything in it. It shows how to set up a mail pipe to a php script using sendmail, exim or qmail. I am not an experienced php coder. Please somebody help me and say what to do! Please! Please!! PS. I am not interested in using mailman mailing list! Quote Link to comment Share on other sites More sharing options...
surefire Posted August 13, 2003 Share Posted August 13, 2003 A quick glance at the article you reference brings up an obstacle to using the instructions Our script has to be started by the mail system. You will need: * PHP compiled as a CGI binary, not just as an Apache module; * a local mail system or MTA, (are you using Sendmail, Exim, Qmail or some other system); * shell access to your server, whether or not you have to be root depends on your mail system. To my knowledge, php is compiled as an apache module at TCH. There are a lot of advantages to this. In fact, this is the first script I've ever seen that seems to prefer the cgi module. A quick google search turned up this http://www.scriptygoddess.com/archives/000982.php Don't know if that fits the bill Quote Link to comment Share on other sites More sharing options...
rayners Posted August 13, 2003 Share Posted August 13, 2003 PS. I am not interested in using mailman mailing list! Just out of curiousity, why not? Quote Link to comment Share on other sites More sharing options...
surefire Posted August 13, 2003 Share Posted August 13, 2003 And this looks VERY promising... haven't tried it myself. http://www.hotscripts.com/cgi-bin/review.cgi?ID=17162 Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 Hello surefire, This is just the thing I am looking for. But Linuxgroup.net couldn't register me as a new user, they don't support public downloads. If you have the copy of the code, can you please send it to me? Thanks in advance for your kind help. -OmicronLab Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 To rayners, I don't like Mailman mailing list because of its shutup mumbi jumbi interface, nothing else. Is not it a better idea to make my own that suits my needs? Thanks. Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 Probably it is a must that php-cgi is installed to do such things! Here is the first line of the code surefire reffred to me : ------------Requirements------------MySQL of course. You also need to have the php-cgi binary installed and configured with mysql Is anybody here for the rescue? Quote Link to comment Share on other sites More sharing options...
surefire Posted August 14, 2003 Share Posted August 14, 2003 Your post got me very interested for my own selfish purposes. I will tell you that it is very easy to set up a simple form for registration, rather than having someone email you to get registered... but I'd like to learn how to accomplish this. I have a strong feeling that it has something to do with the imap library. You might want to do some research at php.net for imap. TCH is configured with imap (or at least my servers) and apparently you can code a script to get imap to open a POP account... I tried earlier today with a quickie script but couldn't get it to do anything. No errors, but no action either. Anyhow, if I were you, I would be happy that TCH has PHP compiled as Apache, not CGI, for security and speed reasons. Then, I would really consider setting up a form where folks can enter email and first name... with the info posted into a mysql database for later use. There are scripts at hotscripts.com that can do this for you. I've set one up myself that will send out follow up emails at regular intervals... but that's another story altogether. Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 I will tell you that it is very easy to set up a simple form for registration, rather than having someone email you to get registered. Ya, you are right. But it has also some possibilities to spam. User may give any mail address. I have to verify that. But when the user is ending mail to you, you can be satisfied with the "reply address" of the mail. How mailman mailing list works on TCH? We can send mail to be subscribed here. There must be any other way if we really have no chance to use php-cgi. But I am not a php guru. For my whole life I have coded in ASP. Expert peoples are here. May I hope to get help from them? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 Hello, I set up a forwarder from Cpanel that forward to|our/script.php test@omicronlab.com Then I sent a message to this address. But the message got bounced and returned to me : Subj: Mail delivery failed: returning message to sender Date: Wed, 13 Aug 2003 23:21:57 -0500 From: Mail Delivery System <Mailer-Daemon@server26.totalchoicehosting.com> ---------------------------------------------------------------- This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |our/script.php generated by test@omicronlab.com "our/script.php" command not found for virtual_address_pipe transport ------ This is a copy of the message, including all the headers. ------ Return-path: <mhasan@omicronlab.com> Received: from [210.4.64.170](helo=omicronlab.com) by server26.totalchoicehosting.com with smtp (Exim 4.20) id 19n9cU-0008LT-TW for test@omicronlab.com; Wed, 13 Aug 2003 23:21:56 -0500 X-Mailer: ePrompter Date: Sun, 2 Mar 2003 8:44:06 +0600 To: <test@omicronlab.com> From: <mhasan@omicronlab.com> Subject: Re: My Website Message-Id: <E19n9cU-0008LT-TW@server26.totalchoicehosting.com> Test IT! Where should I place the "our" directory? Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 14, 2003 Author Share Posted August 14, 2003 Hello, Finally I fegured out how to do this. I have written a php script which will check my pop account pereodically. I can set it with cron jobs. Now the question is: Which interval is safe to use? 5 mins or long? Does it affects on my bandwidth if I use cron job to load and execute php script? Thanks Quote Link to comment Share on other sites More sharing options...
surefire Posted August 14, 2003 Share Posted August 14, 2003 What did you use to check your pop account? Imap? Could you list some of the code? As for the interval, I'd set for 5 minute intervals Quote Link to comment Share on other sites More sharing options...
OmicronLab Posted August 15, 2003 Author Share Posted August 15, 2003 Hello surefire, Here is the link og the article the Article. Quote Link to comment Share on other sites More sharing options...
surefire Posted August 15, 2003 Share Posted August 15, 2003 Thanks for the link! Quote Link to comment Share on other sites More sharing options...
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.