in reply to
Re: How to send multiple user with one mail?
in thread How to send multiple user with one mail?
Your script is fine to grep all the mail. But I don't know why it cannot work when I apply in
or even i assigned to scalar also same
Only work when I manual keyin email like this
below is the script that I modified a bit from the script your provided.
my $query = CGI->new;
my $mail = CGI->new;
my @recipient = ();
open(my $file, "<", "users.txt") or die "Can't open input.txt: $!";
my $hotmail = "hotmail\.com";
my $gmail = "gmail\.com";
# print $query->header('text/html'); # create the HTTP header
# print $query->start_html('Login Access'); # start the HTML
my $emailid= (split/\s+/,$_) ;
$email = join(', ', @recipient);
The result of join is same like this
is it the ' ' symbol I didn't add in beside the mail address during join function? I have no idea how to add in there.