Hi all, i have a quick on that i can't seem to figure out. I installed a script to send out the contents of a folder by globing contents then sending an email via gmail. all works well expect for one part, i can't get a "\n" after each file name like i normally would.
use POSIX qw(strftime);
my $date = strftime("%m-%d-%y",localtime);
my $time = strftime("%I:%M:%S",localtime);
my $directory ="/Users/flieckb/Desktop/files/";
my $to ='brianflieck\@gmail.com';
my $subject = "test";
chdir( $directory ) or warn "Cant chdir to $directory $!";
my(@push_list) = glob "*";
my $filecount = @push_list;
my ($mail,$error)=Email::Send::SMTP::Gmail->new( -smtp=>'smtp-relay.gm
# -layer=> 'ssl',
$mail->send(-to=>"$to", -from=>"$from", -subject=>"$subject", -body=>"
+@push_list\n total files pushed: $filecount");
all works well, but when i get the email it looks like this.
1a.txt 1b.txt 1c.txt 1d.txt 1e.txt 1f.txt 1g.txt 1h.txt 1i.txt 1j.txt 1k.txt 1l.txt 1m.txt 1n.txt 1o.txt
total files pushed: 15
what isn't the \n working in this case?