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 wlnet.com]

>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 ,
ex:


>
$recipient="recip1 at domain.com,recip2 at domain2.com,recip3 at domain3.com";
>    $smtp->recipient($recipient);
 
That is wrong, as its like doing
$smtp->recipient("recip1 at domain.com,recip2 at domain2.com,recip3 at domain3.co
m");

Which is 'BAD' (reference
http://search.cpan.org/~gbarr/libnet-1.19/Net/SMTP.pm"

Instead do...
@recipients=(qw(recip1 at domain.com recip2 at domain2.com
recip3 at domain3.com));
$smtp->recipient(@recipients);



BMRB International 
http://www.bmrb.co.uk
+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 
business.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).




More information about the MailScanner mailing list