I have a working FHEM setup, and now I use a pushing service to send mails. I want to send mails directly from FHEM using MSGMail.
Example from the documentation;
define myMsg MSG
define myMail MSGMail donald.duck@entenhausen.com dagobert.duck@duck-banking.com smtp.entenhausen.net /etc/fhem/msgmailauth
attr myMail smtpport 9999
Which I used as:
define myMsg MSG
define myMail MSGMail fhem@blaat.com dennis@blaat.com smtp.gmail.com /home/pathandfilenameofauthfile
attr myMail smtpport 465
This shit just doesn't work. I get an error message: Cannot load module MSG
I have this a lot with the FHEM documentation, I just copy/paste a 'Full working example', and it just doesn't work, because the people who wrote the documentation didn't consider all the conditions for the example to work.
Really frustrating, been working hours to get a simple task like sending a mail to work...
Hi
you have installed the needed perl libs...?
MAIL::Lite and Net::SMTP::SSL from CPAN is needed to use MSGMail!!
Thanks Tobias!
I've did a 'dpkg -get-selections |greb perl', and it shows;
root@raspberrypi:/home/pi# dpkg --get-selections |grep perl
libalgorithm-diff-perl install
libalgorithm-diff-xs-perl install
libalgorithm-merge-perl install
libclass-isa-perl install
libdevice-serialport-perl install
libdpkg-perl install
libencode-locale-perl install
libfile-copy-recursive-perl install
libfile-fcntllock-perl install
libfile-listing-perl install
libfont-afm-perl install
libhtml-form-perl install
libhtml-format-perl install
libhtml-parser-perl install
libhtml-tagset-perl install
libhtml-tree-perl install
libhttp-cookies-perl install
libhttp-daemon-perl install
libhttp-date-perl install
libhttp-message-perl install
libhttp-negotiate-perl install
libio-socket-ip-perl install
libio-socket-ssl-perl install
liblocale-gettext-perl install
liblwp-mediatypes-perl install
liblwp-protocol-https-perl install
libmailtools-perl install
libnet-http-perl install
libnet-ssleay-perl install
libsocket-perl install
libswitch-perl install
libtext-charwidth-perl install
libtext-iconv-perl install
libtext-wrapi18n-perl install
libtimedate-perl install
liburi-perl install
libwww-perl install
libwww-robotrules-perl install
perl install
perl-base install
perl-modules install
root@raspberrypi:/home/pi#
Do I need more, and if so, whats the package name I can use with apt-get install?
Thanks again!
there are 3 methods
e.g
method 1
sudo cpan -i MAIL::Lite
sudo cpan -i Net::SMTP::SSL
method 2
sudo perl -MCPAN -e shell (open the perl shell)
install MIME:Lite
install Net::SMTP::SSL
method 3
sudo apt-get install (per-lib-name) but now idea now what the names are ...sorry...google will help
I'm not that good with Linux!
You're the best Tobias!, thanks for your help!
No Problem
in addition.
it can be, that some other perl-libs are missing on your system as a prerequisite
pls read the screen or logs for additional informations
these modules are needed
YAML
MIME::Types
MIME::Lite
Net::SMTP::SSL