Author |
Post |
|
#26 Thu Jan 30, 2014 13:30, 135 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi, thank you for your info, I made a new package with version 1.14 (with unicode support)
Bye
|
|
#27 Mon Feb 24, 2014 16:04, 135 months ago.
|
Member
Registered: Feb 2014
Location: St. Maria, Cape Verde
|
Sorry to intrude like this. I'm working with imap. The script ended with the error "Undefined subroutine &Authen::NTLM::ntlm called at ...IMAPCLient.pm line 3181. The module Authen::NTLM is installed. Neverthless adding the authenticate='PLAIN', in the MAIL::Box::IMAP4->new fixes it for me (and breaks for evereyone else I suppose) but adding the possibility to set the authentication through the cfg would be nice (AUTO can be the default ?) What puzzles me more is the error I'm getting after downloading the message from the mail box (well not really it is a "delayed" message which apparently means that it is fetched at the time when it is accessed in the code ?) "Can't call method "string" on an undefined value at ...Delayed.pm line 89. Which really doesn't tell me anything :-( I can see the g_msg object dumped to string and it seems ok to me. Any idea/hint where am I making a mistake ? (I'm running on raspberry pi/raspbian)
|
|
#28 Tue Feb 25, 2014 21:15, 135 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi, regarding the "authenticate" parameter I can implement a solution, but concerning the "delayed" message I have searched a while, but I fear you have to contact the owner of the module (mark overmeer).
Sorry!
Bye
|
|
#29 Wed Feb 26, 2014 14:14, 135 months ago.
|
Member
Registered: Feb 2014
Location: St. Maria, Cape Verde
|
Thanks. I did search for the answer too but alas couldn't find any so I have changed my strategy. I use fetchmail to download the mails, a custom shell script to generate urls to call playsms with wget and send the messages out.
|
|
#30 Tue Apr 01, 2014 04:20, 133 months ago.
|
Member
Registered: Jan 2014
Location: Russian Federation
|
hi, hstadler. Is it possible to filter messages to send SMS messages only from approved senders list (text file with a list of senders)? And, for example, add the option "Only Me." Letters in which the recipient of a few individuals are discarded (messages containing spam).
|
|
#31 Wed Apr 02, 2014 11:32, 133 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi,
I understand what you mean by approved email senders (to allow only these senders to send an sms), but what do you mean with "Only Me" ? Can you give me an example.
Thanks!
|
|
#32 Mon Apr 07, 2014 13:15, 133 months ago.
|
Member
Registered: Jan 2014
Location: Russian Federation
|
hi, hstadler. Option "Only Me" emails must limit where the number of recipients of the message more than one.
Thanks =)
|
|
#33 Tue Apr 08, 2014 18:34, 133 months ago.
|
Member
Registered: Apr 2014
Location: Asarum, Sweden
|
hi, i have a problem when i enter several emailadresses in to field. then all users is getting double sms.
|
|
#34 Thu Apr 10, 2014 12:39, 133 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
hi,
please set the config parameter:
# Level of logging (debug,info,warn,error,fatal) LOGLEVEL=debug
and send the log output to my mailaddress (...gmx) defined in the config header lines.
bye
|
|
#35 Tue Apr 15, 2014 13:49, 133 months ago.
|
Member
Registered: Apr 2014
Location: Zimbabwe
|
Hi,
I am getting the following error after it retrieves mail from the mbox mailbox:
ERROR: Flock of semaphore file "/var/lock/MailSmsGateway/MailSmsGateway.sem" not possible
I have also noticed that the ownership of the mailbox is changed from the user to root after MailSmsGateway accesses the mailbox.
|
|
#36 Thu Apr 17, 2014 11:33, 133 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi,
I think you are trying to start a second instance of MailSMSGateway, please check, there should be aready one running -> restart.
|
|
#37 Thu Sep 11, 2014 15:38, 128 months ago.
|
Member
Registered: Sep 2014
Location: Russian Federation
|
hi, hstadler. I get the following error when I try to run the MailSMSGateway [root@mail MailSmsGateway]# /usr/local/bin/MailSmsGateway/MailSmsGateway Can't locate Mail/Box/Manager.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/MailSmsGateway/MailSmsGateway line 51. BEGIN failed--compilation aborted at /usr/local/bin/MailSmsGateway/MailSmsGateway line 51. Do not tell me what I'm doing wrong?
|
|
#38 Thu Sep 11, 2014 20:47, 128 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi, have a look at "MailSmsGateway_1.15.pdf" on page 10 about "Perl modules" and install this module with
"cpan Mail::Box"
|
|
#39 Fri Nov 07, 2014 08:46, 126 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
Hi!
I'm using MailSmsGateway with a imap account, and every time I try to run the program i get the following error int the log file: DEBUG: Mailbox imap4 - imap.gmail.com, smsoppari, INBOX not ready to open ERROR: Mailbox imap4 - imap.gmail.com, smsoppari, INBOX not readable
I'm sorry for asking such a newbie question, but what could be the cause of this?
|
|
#40 Sun Nov 09, 2014 12:53, 126 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi, I would suggest you try it first with a standard email client (microsoft outlook, thunderbird,...) if that works you go on with mailsmsgateway.
PS: in gmail you have to enable the "imap" functionality, but there are a lot of descriptions out there who describes how to make...
|
|
#41 Mon Nov 10, 2014 10:57, 126 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
Hi again!
I've had the imap enabled from gmail the whole time and the account works perfectly with thunderbird. Also tried it with POP, same result.
I'm running out of options here :\
|
|
#42 Mon Nov 10, 2014 11:11, 126 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
Oh and I forgot to mention that I've also enabled less secure apps from google, so that shouldn't be a problem either....
|
|
#43 Tue Nov 11, 2014 08:03, 126 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi,
secure imap4 (imap4s) is not implemented at the moment but pop3s is. This should work, dont forget to enable this in gmail.
Hope this helps.
Bye
|
|
#44 Thu Nov 13, 2014 08:47, 126 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
This solved my problem, thank you Herbert, you are a treasure!
|
|
#45 Thu Nov 13, 2014 09:14, 126 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
Hi again!
I was wondering if it is possible to extract more than one number from the mailbody? Would it be possible by altering the regex or would that require modification to the code?
Thanks for your patience!
|
|
#46 Thu Nov 13, 2014 18:32, 126 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
You can have as much sms-numbers you like, the simplest solution is described on page 7.
one user mailbox like "sms" and you send a mail like:
"4399999887755<sms@domain.com>" or any other number, the receiver is always the user "sms".
In this case you have to configure: “MAILBOX_SMSFIELD” with “displayname” (because we use the displayname and not the username for the sms number).
Regex is only used to check the sender of the mail, to limit it to some senders. Normaly anybody could send a mail to this mailbox with the right syntax and you would send a sms to the sms receiver.
PS: What is a displayname / username ? I think this example explains it. mail -s "Test sms" "displayname<username@domain.com>" < /dev/null
|
|
#47 Thu Nov 13, 2014 18:50, 126 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
there is also the possibility to get the sms number out of the mail body with option "frombody", but that should be the last option you should choose.
typical emailaddress "displayname<username@domain.com>" which field contains the sms number ?
choose between "username|displayname|frombody" new option (version 1.13): you can choose "frombody", in this case it is possible to define a regex option where you can extract the sms number from the mail body.
|
|
#48 Fri Jan 09, 2015 13:16, 124 months ago.
|
Member
Registered: Nov 2014
Location: Lahti, Finland
|
So yes, I am using the option frombody to extract the sms number from the message. Here's what I'm trying to do: I have a network monitoring tool that allows automated emails to be sent to certain addresses when certain events occur. My plan is to make some of these automated messages to be sent as a text messages. Currently I'm going to include the actual text message in the subject of the email, and the number or numbers in the mailbody.
Here's an example: to: smstoolsaccount@something.com subject: Hi, your network is currently down. mailbody: 0401234567 0402345678 0403456789.
I can get it to work with one number but not with several.
|
|
#49 Wed Jan 14, 2015 08:36, 124 months ago.
|
Member
Registered: Oct 2012
Location: Austria
Topic owner
|
Hi,
at the moment not working with more than 1 number.
Alternative Solution: you send a mail with only one number (in your case you send the mail 3x with different numbers).
|
|
#50 Tue Oct 13, 2015 18:08, 115 months ago.
|
Member
Registered: Oct 2015
Location: Austria
|
Thanks for this Tool ! I would rather the syntax "to : " just like to use " + ". Ich würde anstatt der Syntax "to: " gerne "+" verwenden. My Settings: What I would have to change in: ?? Thanks for Help.
|