----- Original Message ----- 
From: "Chris Conacher" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 20, 2005 1:11 AM
Subject: Creating multiple recipients in the Mail::Mailer module?


> How do I create multiple recipients in the Mail::Mailer module?
> 
>  
> 
> I currently have the following which works for a single recipient in the
> 'To' field and I was wondering how to add more?
> 
>  
> 
> $mailer = new Mail::Mailer 'smtp', Server=>'SERVERNAME';
> 
>                 $mailer->open ({        From    => 'ANYNAME
> <[EMAIL PROTECTED]>',
> 
>                                         To      =>
> '[EMAIL PROTECTED]',
> 

To =>
['[EMAIL PROTECTED]',
'[EMAIL PROTECTED]',
'[EMAIL PROTECTED]'],

or:

To => [EMAIL PROTECTED],

where @addies has earlier been declared as:

my @addies = ('[EMAIL PROTECTED]', 
'[EMAIL PROTECTED]',
'[EMAIL PROTECTED]');

It's specified in the module's documentation. See 'perldoc Mail::Mailer'.

Cheers,
Rob
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to