
Hi Kenneth, Kenneth Thorman schrieb:
#!/usr/bin/perl use Net::SMTP::SSL;
my $fromEmail = 'XXXXXXXXXXXXXXx'; my $emailPassword = 'XXXXXXXXXXXXXXx'; my $toEmail = 'XXXXXXXXXXXXx';
....
As the otrs.checkModules script says, that it can find Net::SMTP::SSL, you should check if the same Perl interpreter is used. And you should print where the otrs script can find the module. Add this line to otrs.checkModules: print $^X, " :: ", $INC{"Net/SMTP/SSL.pm"}, "\n" if $Module->{Module} eq 'Net::SMTP::SSL'; (add it to the place where it prints "ok (v$Version)" (around line 310) ) and add print $^X,"\n"; to your test script that you posted above...
I get this output
Can't locate Net/SMTP/SSL.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi ... /usr/lib/perl5/5.8.8 .) at ./perl_test_email_gmail.pl line 2. BEGIN failed--compilation aborted at ./perl_test_email_gmail.pl line 2.
Maybe you should clean your @INC... Regards, Renee -- Perl-Magazin: http://perl-magazin.de Perl-Nachrichten: http://perl-nachrichten.de