RE: send email with Perl
- From: RyanFrantz@xxxxxxxxxxxxxxxx (Ryan Frantz)
- Date: Thu, 27 Oct 2005 09:44:00 -0400
> -----Original Message-----
> From: Charles Li [mailto:cli168@xxxxxxxxx]
> Sent: Thursday, October 27, 2005 9:38 AM
> To: beginners@xxxxxxxx
> 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 = ( 'me@xxxxxxxx', 'you@xxxxxxxxx' );
$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: beginners-unsubscribe@xxxxxxxx
> For additional commands, e-mail: beginners-help@xxxxxxxx
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
.
- Prev by Date: send email with Perl
- Next by Date: RE: send email with Perl
- Previous by thread: Perl - Add env,.variable?
- Next by thread: RE: send email with Perl
- Index(es):