I am using following code to create and send email through CGI perl. The images get attached properly, but the css files do not.
my $msg = new MIME::Lite(
From => $from,
To => $to_list,
Subject => "My subject",
Type => 'text/html', # 'multipart/mixed'
Data => $body
);
$msg->attach(Type => 'multipart/mixed', Path => $DOCS_URL . "/fonts-min.css");
$msg->attach(Type => 'multipart/mixed', Path => $DOCS_URL . "/eat.css");
$msg->attach(Type => 'multipart/mixed', Path => $DOCS_URL . "/site_styles2.css");
$msg->attach(Type => 'multipart/mixed', Path => $DOCS_URL . "/calendar_layout.css");
$msg->attach(Type => 'multipart/mixed', Path => $DOCS_URL . "/errnacc.css");
$msg->attach(Type => 'image/png', Path => $DOCS_URL . "/separator.gif");
$msg->attach(Type => 'image/png', Path => $DOCS_URL . "/trans_pixel.gif");
$msg->attach(Type => 'image/png', Path => $DOCS_URL . "/itg_side.gif");
$msg->send();
The images get attached properly, but the css files are not attached at all. Any idea what 'Type' should be used to attach CSS files? Or is there any other problem?