如何在我从Perl CGI脚本发送的HTML电子邮件中包含CSS文件?
发布时间:2020-12-15 23:28:13 所属栏目:大数据 来源:网络整理
导读:我使用以下代码通过CGI perl创建和发送电子邮件.图像得到正确附加,但css文件没有. my $msg = new MIME::Lite( From = $from,To = $to_list,Subject = "My subject",Type = 'text/html',# 'multipart/mixed' Data = $body ); $msg-attach(Type = 'multipart/m
我使用以下代码通过CGI perl创建和发送电子邮件.图像得到正确附加,但css文件没有.
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(); 图像正确附加,但css文件根本没有附加. 解决方法
我相信text / css应该没问题
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |