我想下面的代碼發送電子郵件與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);