i'm going thru list of emails and sending individual emails. i want an option to add the emails to a cc field instead of sending individual emails. here's excerpt of my code.
header_str => [
From => $from,
To => [ $to ],
Return-Path => $returnpath,
Cc => $cc,
Reply-To => $reply_to,
Subject => $subject,
],
parts => \@all_parts,
attributes => {
encoding => 'base64',
content_type => "multipart/mixed"
}
);
sendmail($email->as_string);
each individual email is in $to as it cycles thru list.
first, is it possible to do what i want? if so, what format should $cc be? ( i want to add the addresses to $cc)
Code:
my $email = Email::MIME->create( header_str => [
From => $from,
To => [ $to ],
Return-Path => $returnpath,
Cc => $cc,
Reply-To => $reply_to,
Subject => $subject,
],
parts => \@all_parts,
attributes => {
encoding => 'base64',
content_type => "multipart/mixed"
}
);
sendmail($email->as_string);
each individual email is in $to as it cycles thru list.
first, is it possible to do what i want? if so, what format should $cc be? ( i want to add the addresses to $cc)