foreach $logLine (@LogFile) { $smtp->datasend($logLine); }