MailScanner Multiple Recipients from Perl Scripts

Spicer, Kevin (MBLEA it) Kevin.Spicer at BMRB.CO.UK
Fri Nov 5 08:57:36 GMT 2004

-----Original Message-----
From: Stephen Conway [mailto:sconway at]

>I have noticed that when running MailScanner, if you try to send an
SMTP message from 
>within an external perl script where you send to multiple recipients ,

$recipient="recip1 at,recip2 at,recip3 at";
>    $smtp->recipient($recipient);
That is wrong, as its like doing
$smtp->recipient("recip1 at,recip2 at,recip3 at

Which is 'BAD' (reference"

Instead do...
@recipients=(qw(recip1 at recip2 at
recip3 at;

BMRB International
+44 (0)20 8566 5000
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance on it is prohibited.  BMRB International Limited 
accepts no liability in relation to any personal emails, or 
content of any email which does not directly relate to our 

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list