From: mailing lists
> I have a perl (Ver. 5.10.0) program running over an old machine which send
> messages with this code:
>
>
> my $smtp = Net::SMTP->new($dstMailServer, Timeout=>10, Debug=>0,);
> unless(defined($smtp)){
> syslog LOG_INFO, "id:%s error: unable
Argh, misunderstood the doc a bit. This line in my code:
push @msg_content, "\r\n";
... is redundant, the termination string will be added automatically by
data() method.
-- iD
2012/2/23 Igor Dovgiy
> From the documentation (http://perldoc.perl.org/Net/SMTP.html)
> ...
> data ( [ DATA ] ) - i
>From the documentation (http://perldoc.perl.org/Net/SMTP.html)
...
data ( [ DATA ] ) - initiate the sending of the data from the current
message. DATA may be a reference to a list or a list. If specified the
contents of DATA and a termination string ".\r\n"is sent to the server. And
the result wil