Bush Dr has asked for the wisdom of the Perl Monks concerning the following question:
$newline is the culprit. If I pass it as listed above, it doesn't work. If I replace the variable with static text it runs.........help!!open (PAGE, "<staging.log"); @lines = <PAGE>; foreach $line (@lines) { $newline = $line; } close (PAGE); ##### Sending Email my $recipient1 = 'johnny@abc.net'; my $smtp = Net::SMTP->new('mailrelay.acme.com', Hello => 'email.acme.com' ); $smtp->mail ($ENV{USER}); $smtp->recipient($recipient1); $smtp->data(); $smtp->datasend("$newline"); $smtp->datasend(); $smtp->quit;
Title edit by tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: NET::SMTP
by gnangia (Scribe) on Aug 11, 2003 at 15:45 UTC | |
Re: NET::SMTP
by Abigail-II (Bishop) on Aug 11, 2003 at 15:33 UTC | |
by Bush Dr (Initiate) on Aug 11, 2003 at 15:51 UTC | |
by elbie (Curate) on Aug 11, 2003 at 15:58 UTC | |
by sgifford (Prior) on Aug 11, 2003 at 16:28 UTC | |
by jonnyfolk (Vicar) on Aug 11, 2003 at 19:35 UTC | |
by Abigail-II (Bishop) on Aug 11, 2003 at 21:15 UTC |