looking over my code, i was wondering where do i tell it my mail program and smtp server? also, can i add several things to header like:
header_str => [
From => $from,
To => [ $to ],
Return-Path => $admin_email,
Bcc => $bcc,
Cc => $cc,
Reply-To => $reply_to,
Subject => $subject,
],
parts => \@parts,
attributes => {
encoding => 'base64',
charset => "UTF-8",
content_type => "multipart/alternative",
disposition => "inline",
}
);
why is $to enclosed in brackets?
Code:
my $email = Email::MIME->create( header_str => [
From => $from,
To => [ $to ],
Return-Path => $admin_email,
Bcc => $bcc,
Cc => $cc,
Reply-To => $reply_to,
Subject => $subject,
],
parts => \@parts,
attributes => {
encoding => 'base64',
charset => "UTF-8",
content_type => "multipart/alternative",
disposition => "inline",
}
);
why is $to enclosed in brackets?