my $msg = MIME::Lite->new( From => 'Report', To => $emails, Subject => "Num: 1", Type => 'multipart/related') or die "Error Creating Message: $!\n"; $msg->attach( Type => 'text/html', Data => qq|
Report Received:
 
Name: $name
Email: $email
# I must have this logic here to have this working $alt_color=0; $c=-1; foreach (@system_names){ $c++; $color1="#f3f3f3"; $color2="#a1a1a1"; $rowcolor = $alt_color++%2 ? $color1:$color2; my $out = " "; } # end logic
Form:
 
NAME: $user
 
Number: Menu: Description: ID1: ID2: Deliver:
$system_names[$c] $name_names[$c] $menu_names[$c] $option_names[$c] $system_names[$c] Received
 
Note: Do not reply. 
|, ); # Attach GIF image $msg->attach( Type => 'image/gif', Id => 'logo_black', Encoding => 'base64', Path => 'images/logo.gif'); $msg->send();