can't send email, errors in command ref faulty documentation

Begonnen von Lectere, 26 Juli 2013, 10:37:48

Vorheriges Thema - Nächstes Thema

Lectere

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...
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

tobias.gj

Hi
you have installed the needed perl libs...?


MAIL::Lite and Net::SMTP::SSL from CPAN is needed to use MSGMail!!
Cubietruck mit cubien, HUE, HMLAN, Onkyo, Sonos
EMGZ,EMWZ,HM-CC-RT-DN,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-LC-Sw1PBU-FM,HM-RC-KEY3-B,HM-SEC- KEY,HM-SEC-RHS,HM-SEC-WDS, KS300,S300TH, fs20piri,fs20st, hms10

Lectere

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!
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

tobias.gj

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
Cubietruck mit cubien, HUE, HMLAN, Onkyo, Sonos
EMGZ,EMWZ,HM-CC-RT-DN,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-LC-Sw1PBU-FM,HM-RC-KEY3-B,HM-SEC- KEY,HM-SEC-RHS,HM-SEC-WDS, KS300,S300TH, fs20piri,fs20st, hms10

Lectere

I'm not that good with Linux!

You're the best Tobias!, thanks for your help!

SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

tobias.gj

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
Cubietruck mit cubien, HUE, HMLAN, Onkyo, Sonos
EMGZ,EMWZ,HM-CC-RT-DN,HM-LC-Bl1PBU-FM,HM-LC-SW1-PL2,HM-LC-Sw1PBU-FM,HM-RC-KEY3-B,HM-SEC- KEY,HM-SEC-RHS,HM-SEC-WDS, KS300,S300TH, fs20piri,fs20st, hms10