Gossamer Forum
Home : Products : Links 2.0 : Customization :

Subscribe Categories ... is it possible ???

Quote Reply
Subscribe Categories ... is it possible ???
Hi !!!

I'm thinking how to make more than one mail list ...

eg. Mail list 1 => to visitors
Mail list 2 => to members
Mail list 3 => to resselers

... then I will can send e-mails for only the subscribers that category ... ok


Any Ideas ???


Regards,

marcoBR

Quote Reply
Re: Subscribe Categories ... is it possible ??? In reply to
I have been wanting this too for a long time in addition to being able to mailing to people that wanted specific categories information. Many people have asked for this in the past and there have been no answers so far.

I have been thinking that one way to do this would be to add a new logging sub to the add.cgi with a conditional statements that would be something like these:

Code:
if ($form{'category'} eq "sports") {
open(LOG, ">>$db_script_path/data/sports_log.txt");
flock LOG, 2;
print LOG "$id\|$date\|$form{'name'}\|$form{'email'}\| etc... \n";
flock LOG, 8;
close (LOG);
}

if ($form{'category'} eq "business") {
open(LOG, ">>$db_script_path/data/business_log.txt");
flock LOG, 2;
print LOG "$id\|$date\|$form{'name'}\|$form{'email'}\| etc...\n";
flock LOG, 8;
close (LOG);
}
Then we would have separate logs that we could call to make the specialized mailings. The part that I haven't figured out would be how we could migrate the existing logs that we already have into the individual logs. Another concern would be how much extra work this would add to the add.cgi and subscribe.cgi

I'm currently working past the extension deadline on getting my taxes filed, but after I get through with them I'm going to play around with this and see what I can come up with.


Jimmy Crow
http://www.homewithgod.com/