如何使用sendmail將圖像和超鏈接添加到perl中的電子郵件?帶有超鏈接和嵌入圖像的perl sendmail
這是我想在$消息體(可變):
文件:filename.jpg
(添加的形象在這裏在線)
一直proccess你可以找到它: add link here`
這裏是我的代碼:
sub sendEmail
{
my ($to, $from, $subject, $message) = @_;
my $sendmail = '/usr/lib/sendmail';
open(MAIL, "|$sendmail -oi -t");
print MAIL "From: $from\n";
print MAIL "To: $to\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$message\n";
close(MAIL);
}
sendEmail($receiver, 'admin, 'your file has been Synchronized', $message);
如果有幫助,謝謝 – mamesaye 2012-04-10 17:35:29