Jump to content

Plese Help! Mailing List

Recommended Posts


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!

Link to comment
Share on other sites

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




Don't know if that fits the bill

Link to comment
Share on other sites

Probably it is a must that php-cgi is installed to do such things! :D


Here is the first line of the code surefire reffred to me :


MySQL of course. You also need to have the php-cgi binary installed and  configured with mysql


Is anybody here for the rescue?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


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 [](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?

Link to comment
Share on other sites


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?



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...