Hi,
We are working on perl script in our application which is sending mails to many users
We are using Net::SMTP
We are using an array to store the multiple recipients and send the mails
But in the e-mail sent, we are not able to see all the email address of the recipients in To/Cc field.
my @cclist = ('abc\@yahoo.com','bfgh\@hotmail.com','rew\@rediff.com');
my @ToAddress = ('abc\@yahoo.com','bfgh\@hotmail.com','rew\@rediff.com
+');
# Create a new multipart message:
$MIMEEntity = build MIME::Entity
From => $FromAddress,
'Reply-To' => $ReplyToAddress,
To => @ToAddress,
CC => @cclist,
Subject => $MailSubject,
Notify => 'SUCCESS,FAILURE,DELAY',
Type => 'multipart/mixed';
$NetSMTP->mail($FromAddress) or die "ERROR calling SMTPmail, stopped";
$NetSMTP->to(@ToAddress) or die "ERROR calling SMTPmail, stopped";
$NetSMTP->cc(@cclist) or die "ERROR calling SMTPmail, stopped";
How do we fix this
2004-12-23 Janitored by Arunbear - added code tags, as per Monastery guidelines