我想下面的代码发送电子邮件与attachemnts。然而,这个代码只发送电子邮件而不是附件。如何发送电子邮件与附件中的附件
有人可以帮忙吗?
open(SENDMAIL, "|/usr/lib/sendmail -oi -t -i") or die "Can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: <new\@something.com>
To: <new\@something.com>
Cc: <new\@something.com>
Subject: this is our email
Content-type: text/plain
Hi This is the mail
EOF
close(SENDMAIL);