> -----Original Message-----
> From: Charles Li [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 9:38 AM
> To: beginners@perl.org
> Subject: send email with Perl
> 
> Hi,
> I am using "use Net::SMTP;" to send email to multiple
> people.  But the recipients can not send the other
> receiver emails.  It just says undisclosed recipients.
>  How do I send email to multiple people and let them
> see who is on the To list?

After creating the mail object ($email in this example), you can use the
datasend() method like so:

  my @toList = ( '[EMAIL PROTECTED]', '[EMAIL PROTECTED]' );
  $email->datasend("To: @toList\n");

You may need to join() the list items with a ',' or ';' in order for the
mail client to read/display the names properly.

ry

> 
> Thanks.
> 
> 
> 
> 
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in one click.
> http://farechase.yahoo.com
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to