T
ty
Could anyone tell me how to send e-mail and attachment (a text file) by
Perl?
I used codes like these:
$to="takashiyyy\@yahoo.com";
$from ="anotherAdress\@yahoo.com";
$subject = "test";
$content = "this is a test";
open (MAIL, "|/usr/sbin/sendmail -t");
print MAIL "TO: $to \nFrom: $from: \n";
print MAIL "Subject: $subject \n";
print MAIL "$content \n";
close(MAIL);
but how can I attache a file (text file)?
thank you.
takashi
Perl?
I used codes like these:
$to="takashiyyy\@yahoo.com";
$from ="anotherAdress\@yahoo.com";
$subject = "test";
$content = "this is a test";
open (MAIL, "|/usr/sbin/sendmail -t");
print MAIL "TO: $to \nFrom: $from: \n";
print MAIL "Subject: $subject \n";
print MAIL "$content \n";
close(MAIL);
but how can I attache a file (text file)?
thank you.
takashi