in reply to Re^2: MIME::Lite $message construction with variables
in thread MIME::Lite $message construction with variables

$name is within ' ' single quotes.. so it will not be expanded..

You might have to resort to something as neanderthal as:
$message1 = ' part 1 of html code block '; print $message1; print "$name"; $message2 = ' part 2 of html code block '; print $message2;

You could also use stuff from the CGI module to construct html, but you might need more specific than it can give you.