CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Mailing list

 



ortora
Deleted

Jan 30, 2001, 10:22 PM

Post #1 of 6 (328 views)
     Mailing list  

Can anyone tell me if it is possible to create a script that writes more one email to a mailing list txt file? All the mailing list programs I have found are the same.. they let you add one email only. If I have a lot of emails to add, is there a way to create a scrpt that does that, so it writes the emails to a text file?

Thanks



modified
Deleted

Jan 31, 2001, 4:07 AM

Post #2 of 6 (327 views)
     Re: Mailing list [In reply to]  

Do you mean something so that you can send off multiple mails to the list, and have them be added to a text file?



ortora
Deleted

Jan 31, 2001, 5:05 AM

Post #3 of 6 (325 views)
     Re: Mailing list [In reply to]  

No. Sorry, I didn't phrase it the right way.
When you are in the admin area of your mailing list, there is usually a text box where you can add or remove one subscriber from your mailing list. Sometimes I have 100 people to add, or many to remove (I collect emails on different places - my site, events, etc.) and with all these Mailing List programs, I have to go back and forth to add these high #'s of emails...

What I am looking for is a script, for example a text box (multiline) where I can enter all the email addresses I want to add or remove (separated by space, or one each line) and they all get added to (or removed from) the mailing list .txt file that contains all the addresses of previous subscribers..

I hope this is more clear, sorry about the last post...



modified
Deleted

Jan 31, 2001, 12:40 PM

Post #4 of 6 (321 views)
     Re: Mailing list [In reply to]  

You could find one that you like and just modify it so that it will accept more than just one. That's probably the easiest way to go.



ortora
Deleted

Feb 2, 2001, 10:25 PM

Post #5 of 6 (312 views)
     Re: Mailing list [In reply to]  

The script checks the validity of the email addresses with this script..

sub checkaddress {

$INPUT{'email'} =~ s/\s//g;

unless ($INPUT{'email'} =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)|(,)/
|| $INPUT{'email'} !~
/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/)
{
$legalemail = 1;
} else {
$legalemail = 0;
}

How can I change it so that it allowes me to add several addresses at once?

Thanks.



sleuth
Enthusiast / Moderator

Feb 3, 2001, 9:19 AM

Post #6 of 6 (305 views)
     Re: Mailing list [In reply to]  

 
Continued at ......

This Thread

Tony


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives