PDA

View Full Version : Maintain list subscribers from another script?


navigator4
09-26-2009, 01:55 PM
I have a 'member-only' script that allows users to keep their contact info current, and offers options to receive mail from various groups. This script can be easily set to build an updated text file of subscribers based on that input.

Question: Can I edit/update an ezmlm subscriber list using this technique? That would save them (or me) having to go in and make changes (adding, removing or changing address) in multiple locations. I looked at the log of subscribers that ezmlm creates, but that appears to be more than just a list of addresses.

Melissa
09-26-2009, 02:29 PM
If you have text file, then I could see two ways you could manage the list requests (this is assuming that the addresses have completed the Confirmed Opt-In process (http://service.FutureQuest.net/kb115) as required by the FutureQuest Terms of Service)*:

(1) You can add (or remove) addresses through the CNC in the Mailing List area. Under List Options, you should see a link for "Add or Remove Subscribers". Simply choose the action - Subscribe or Unsubscribe - and copy and paste the addresses into the text box (one address per line).

(2) You could do this through the command line in a shell session if you are experienced with that type of thing. The commands for working with ezmlm-idx from the command line are given in the following tutorial under the article titled "Adding, Removing, Viewing Subscribers":
http://service.FutureQuest.net/kb580

If the addresses you wish to subscribe to the list have not gone through a Confirmed Opt-In process, then you would use a process that includes such a confirmation. One way to do that is explained in this tutorial:
"Sending Batch Confirmation Requests"
http://service.FutureQuest.net/kb528

*If you do not use ezmlm-idx's built-in Confirmed Opt-In process, you will need to retain proof of the subscriber completing a Confirmed Opt-In process as this may be requested from you in the event we would receive a spam complaint.

I don't know if you were looking for more of an automated way to do this, but hopefully the above will help for ideas.

navigator4
09-26-2009, 08:20 PM
Thanks for the reply. The member script I use is a highly-modified version of Gossamer-Threads Links2, and when it rebuilds I have it update various text files (birthday lists, etc). It also builds text files of email addresses for those that have checked the button to receive them. I would like to have ezmlm use these files for subscribers, and not have to go through the CNC.

I could write a subroutine that would emulate using the CNC form, to be run each time the directory rebuilds (not scheduled: only as needed). The text file would be used as the $member_list variable. Something along these lines would be needed:

<form action="ezmlm-idx.cgi" method="post" name="form" id="form">
<input type="hidden" name="uniqueid" value="######" />
<input type="hidden" name="list" value="xxxxxx" />
<input type="hidden" name="do" value="subscribe" />
<textarea name="addresslist" cols="40" rows="8" wrap="virtual">$member_list</textarea></td>
<input type="submit" class="button" value="Submit" title="Submit" />
</form>

The value of the unique ID could be a problem...

I may use a third-party mlm to do this if it's the only way. The list is less than 200 entries, and is used pretty lightly, as a way for members to inform each other of personal news or upcoming events.