i need some help with a sendmail perl script.
So i have 1 part of html message included from file msg.txt and second part is already in my $html
I have 2 variables into msg.txt(first part) that doesn't work.. in the second part it works fine..
EDIT : So . in the msg.txt file i have the following : $website,$token that is declared in perl script. When i run the script i receive email containing names of variables($token,$website) instead value of variables..
CODE
$website = "domain.com";
$token = 'token123456';
open(IN,$list);
while(chop($email_line=<IN>)) {
local $/ = undef;
open MSG, "msg.txt";
$msg = <MSG>;
close FILE;
my @html = "
<html>
$msg (!!! variables $website and $token doesn't work in $msg !!!)
<div style='margin-top:5px; text-align: center;>
Website : $site | Token : $token ( variables are working)
</div>
</html>
";
}
OUTPUT
// this is first part
Website : $website | Token : $token
//this is second part that works
Website : domain.com | Token : token12345