0
Perl을 사용하여 서버에서 Gmail을 보낼 스크립트를 작성하려고합니다. 코드는 다음과 같습니다.Perl로부터 이메일, 객체 메소드를 찾을 수 없음.
use warnings;
use strict;
use Email::Sender;
use Email::Send::Gmail;
use Email::Simple::Creator;
my $email = Email::Simple->create (
header => [
From => '[email protected]',
To => '[email protected]',
Subject => 'Oh no! The bathwater is overflowing!',
],
body => 'The bath water is overflowing.',
);
my $sender = Email::Send->new ({
mailer => 'Gmail',
mailer_args => [
username => 'xxxxx',
password => 'yyyyy',
]
});
$sender->send ($email);
For which I get the error `Can't locate object method "create" via package "Email::Simple" at file.pl line 9.`
이메일 :: 단순 모듈 및 Gmail 모듈을 설치 한 이유는 무엇입니까?