Rudolf has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I'm currently pondering a perl script that can mass email clients from a database.. this is what I have so far but I'm very unsure what the best method of actually sending the email is. I want to be able to send HTML e-mail's with a gmail account I have created.
my @email_list = (); open(LIST,'<',"email_database.txt") or die "$!\n"; while(<LIST>){ chomp $_; push(@email_list,$_); } close(LIST); foreach my $address(@email_list){ sendmail($address); } sub sendmail{ my $address = $_[0]; # what should I use here? if( mail was sent ) {return true} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mass emailing perl scrpt
by Lady_Aleena (Priest) on Jan 05, 2012 at 03:25 UTC | |
|
Re: mass emailing perl scrpt
by tobyink (Canon) on Jan 05, 2012 at 09:09 UTC | |
|
Re: mass emailing perl scrpt
by Anonymous Monk on Jan 05, 2012 at 05:16 UTC |