Matthew Sacks wrote:
Greetings,
I want to send mail from my perl code. (Boy, that's
really unusual....)
I am thinking using mail::mailer.
I need a bit more info than what I have so far found
in the online documentation (perldoc -q mail).
Where I can I find some advice?
E.G., there is always an example of code that defines
a $to argument. but can $to be a list of addresses?
(a group, that is). Can $to be a list of 100 email
addresses?
I usually use Mail::Send, which is a friendlier wrapper around Mail::Mailer
(both are part of MailTools distribution).
For Mail::Mailer, $to can be either a single address in a scalar, or a
reference to an array of addresses:
To => '[EMAIL PROTECTED]';
To => [ '[EMAIL PROTECTED]', '[EMAIL PROTECTED]' ];
To => [EMAIL PROTECTED];
For Mail::Send, you can pass a list to the 'to' method:
$msg->to(@addrlist);
Do I have to think about tuning my sendmail daemon?
Not for Perl's sake.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>