I need to get progress bar in my email sent through a Perl script.
Below is the JS fiddle link I have used. It doesn't display the progress bar in email, though it is visible in browser.
http://jsfiddle.net/dw34m2j7/1/
Here is the Perl code snippet.
use MIME::Lite;
use strict;
my $mail_body = "";
$mail_body = "
<html lang='en'>
<head>
<title>Bootstrap Example</title>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css'>
</head>
<body>
<div class='container'>
<h2>Progress Bar With Label</h2>
<div class='progress'>
<div class='progress-bar' style='width:80%'>80%</div>
</div>
</div>
</body>
</html> ";
my $msg = MIME::Lite->new(
From => "me\@do-not-reply",
To => "abc\@outlook.com",
Subject => "TEST EMAIL",
Type => 'multipart/mixed'
);
$msg->attach(
Type => 'text/html',
Encoding => 'quoted-printable',
Data => $mail_body,
);
$msg->send;
I even used a logic to create progress bar, without JS and Bootstrap, using only HTML and CSS.
Please find the code in the link below.
Let me know a way to send this progress bar through email from Perl.