Perl에서 놀고 있었고 작은 이메일 프로그램을 작성했습니다. 그것은 다음과 같이 갔다 :이메일 프로그램이 Perl에서 작동하지 않습니다.
어떤 이유# -w
#the purpose of this program is to send an email .
print "Hello. Welcome to Paramjot's Mail Program. Please enter your name.\n";
$name = <STDIN>;
chomp ($name);
print "Hello, $name. Please type in the email address you wish to send your email to\n";
$mailadds = <STDIN>;
chomp ($mailadds);
open MAIL, "|mail $mailadds";
print "Please type the message you wish to send below.\n";
$message = <STDIN>;
chomp ($message);
print MAIL "$name says: $message";
close MAIL;
, 나는이 프로그램을 실행하면 프로그램이 메시지를 요청하기로하고 대신 내가 해결하기 위해 할 일을
mail is not recognized as a batch file, internal or external command, or an application.
말한다 때까지 작동 이 문제?
당신의'open' 문은 * nix 상자에서 볼 수있는 종류의 것이지만 MS Windows의 오류 메시지가 냄새가납니다. 메일/SMTP 모듈을 사용하지 않으시겠습니까? – tjd
개방형 성명서를 다른 Windows보다 더 우량한 것으로 대체하는 방법은 무엇입니까? – user2532642
'MIME :: Lite','Net :: SMTP' 또는 유사한 시도 –