Gossamer Forum
Home : General : Perl Programming :

sending cc emails

Quote Reply
sending cc emails
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.
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)
Subject Author Views Date
Thread sending cc emails delicia 5515 Jan 5, 2022, 7:56 AM
Thread Re: [delicia] sending cc emails
delicia 5454 Jan 7, 2022, 8:51 AM
Thread Re: [delicia] sending cc emails
Andy 5444 Jan 8, 2022, 12:05 AM
Thread Re: [Andy] sending cc emails
delicia 5441 Jan 8, 2022, 7:32 AM
Thread Re: [delicia] sending cc emails
Andy 5434 Jan 8, 2022, 8:01 AM
Thread Re: [Andy] sending cc emails
delicia 5433 Jan 8, 2022, 8:09 AM
Thread Re: [delicia] sending cc emails
Andy 5429 Jan 8, 2022, 8:16 AM
Thread Re: [Andy] sending cc emails
delicia 5430 Jan 8, 2022, 8:17 AM
Thread Re: [delicia] sending cc emails
delicia 5425 Jan 8, 2022, 8:33 AM
Post Re: [delicia] sending cc emails
Andy 5370 Jan 12, 2022, 6:17 AM