Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailing list management

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am dealing with mailing list scripts, and all of them let you subscribe one email each time. Is there a script that lets you add more than one address at once? So there should be a form field where to enter as many addresses as needed, and the script should write them on the text file with the other addresses... Can anyone help?

It would be appreciated!
 
View the tek-tip's FAQ on using mail and perl. You'd need to just add them as Cc: addresses.
"If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
I saw the FAQ. I think I didn't phrase the question correctly. My problem is not in sending out the email, that works fine. What I am looking for is a way to subscribe or unsubscribe (example) 15 people at once. All the mailing list scripts have a little text box (in the admin area) where you can only add (or remove) one address, so if you have 15 people to add or remove it takes a very long time (you have to go back and forth). In my case, sometimes we have 100 emails to add! Any way of adding all of them at once to the .txt file that contains all the email addresses?
Thanks for your time!

P.S. I know I can log on to my FTP and add them, but some admin users are not familiar, so I am looking for something more "user-friendly."
 
A script to append info onto a file would be fairly easy to
write, especially if it could be stored in the server's
cgi-bin. All it would need to do is parse in the data from
a list of email addresses and append them to a file.
To append, open the file:[tt]

#!/usr/local/bin/perl
#first part of script to parse the emails, depending
#on how you set up the html forms. then...


open(FILE, ">>$file") || &dienice("$file unopenable: $!");
foreach (@emailaddresses) {
print FILE "$_\n";
}
close FILE;[/tt]

If you cannot put your script on the computer with the file to be appended, you can make a script on your computer to do the FTP appending that you can do yourself, but so that it's automated for the other users. see Net::FTP documentation for info on that (it shouldn't be very hard to do at all, although i don't know offhand how to append over FTP. if nessecary, you can just get() the file, append it, then put() it back), or ask again for more details. This should be enough to do what you needed.
"If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top