Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@LogFile is the array I'm using Thanks for the help!$smtp = Net::SMTP->new('Mail.Server'); $smtp->mail( 'user.com' ); $smtp->to($emailid); $smtp->data(); # Start the mail $smtp->datasend("To: Mickey Mouse\n"); $smtp->datasend("From: John Doe\n"); $smtp->datasend("\n"); $smtp->datasend(@LogFile); $smtp->dataend(); # Finish sending the mail $smtp->quit; # Close the SMTP connection
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SMTP and arrays
by vladb (Vicar) on May 31, 2002 at 13:19 UTC | |
|
Re: Net::SMTP and arrays
by Steve_p (Priest) on May 31, 2002 at 13:35 UTC | |
|
Re: Net::SMTP and arrays
by Hofmator (Curate) on May 31, 2002 at 13:50 UTC | |
by Anonymous Monk on May 31, 2002 at 13:54 UTC | |
by ides (Deacon) on May 31, 2002 at 14:11 UTC |