I use gammu-smsd to send SMS from my rpi.
Sometimes the SMSC returns an unknown error for an SMS and this SMS blocks all other SMS ...
Example: my failed SMS in the outbox is OUTC20190409_165555_00_0781950085_sms0.smsbackup and all other SMS are waiting for it to be sent. So, all my SMS are blocked ...
Is there a way to remove the SMS from the Outbox if it fails to send?
Thank you
Self-answer:
edit /etc/gammu-smsdrc
Add option RunOnFailure = /var/spool/gammu/on-error.sh
/var/spool/gammu/on-error.sh :
#!/bin/bash
mv /var/spool/gammu/outbox/$1 /var/spool/gammu/error
Related
For any of the following core meteor account methods I would like to know if the attempt to send the email was a success or failure, so I can appropriately notify the client if there is an issue and no email is sent.
Accounts.verifyEmail
Accounts.sendResetPasswordEmail
Accounts.sendEnrollmentEmail
Accounts.sendVerificationEmail
Is this possible?
Set Accounts.emailTemplates.from = "myemail#domain.com"
Then your mail server should send any failed receipts back to you..
Additionally, Email.send Throws an Error on failure to contact mail server or if mail server returns an error.
I am attempting to use postfix to send emails from an application. Right now when I send an email using mailx it appears that the email gets to the queue but it doesn't actually send until I flush the queue manually.
Can anyone tell me how I can get postfix to send any emails that are in the queue automatically?
Right now my test is:
mailx user#domain.com
subject: some test
this is sometest
ctl-d
When I look at the queue using postqueue or mailq the system tells me the mail queue is empty. But as soon as I flush the queue I the relay server receives the email and they get to my inbox.
Any thoughts or help would be appreciated.
I am sending a notification to android app using xmpp gcm.
When the server sends the notification request to gcm I receive ack from ccs that it has receive a notification request. This notification is send by gcm using xmpp protocol to my app. I want the app to send an ack to my server that it has receved the notification.
Can any one tel me how to send ack through gcm xmpp protocol to the server?
All you need to do this is to follow https://developer.android.com/google/gcm/client.html , and read "Send a message" section. The sent message will be read by our xmpp gcm server, consume the message there.
This application support send a scheduled sms in background mode! How to they do that?
What do you think about this their info:
In order to send out the scheduled message:
This app must be running on your iPhone, either in the background or in the foreground;
Your iPhone must not be in the airplane mode;
Your iPhone must have carrier's signal at the scheduled time;
NOTES:
If you schedule a message with a large number of recipients, please check with your carrier for the maximum number of recipients allowed per message. If you exceed the maximum number allowed, your message may be blocked by your carrier.
Your iPhone must be powered on at the scheduled time so that the message can be sent out;
If you reboot your iPhone, or turn it off/on, remember to restart this app as soon as possible so that the timer can still be active.
Some results from testing...confirms this app is sending normal SMS WITHOUT user interaction!
WLAN ON + GSM OFF (no reception) => the app does NOT send SMS, even after reception is back no SMS gets send. In the phone's messages log it tells "failed sending SMS"
WLAN OFF + GSM ON => the app sends SMS without user interaction (I checked my bill, and in fact a SMS got sent through the provider! - no data traffic to a server!)
Also, by the way when the SMS is received the sender's SMS number is displayed correctly. I know one could do this through a SMS server - but in fact a REAL SMS got sent through the provider! There was no data traffic, no other cost than my providers SMS charge, and on the past activities it explicitly showed this SMS!
So somehow this app sends a real SMS without user confirmation.
Probably there is a way to use the direct SMS library without Apple's review team finding out? Anyway I know for sure, that Apple rejects apps that use this library (if they find out!)
Your best bet is to setup an intermediate server on the internet that uses an online SMS sending service, and send the SMSs via that route if you need complete automation. (ie, your program on the iPhone sends a UDP packet to your server, which sends the real SMS)
I am using MFMessageComposeViewController to send sms within my app. Everything is correct until i try to get the result of the operation. Actually the Message sending failed as It can be seen in the SMS native app (I have no service in the sim card), but I get MessageComposeResultSent in - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result.
Have you ever gone though this? Could we get a real assert that the sms has been properly sent?
Thanks a lot.
Here is a snippet from the MessageComposeResult struct's discussion in MFMessageComposeViewController.h :
Typically MessageComposeResultSent
will be sent, but
MessageComposeResultFailed will be
sent in the case of failure. Send may
only be interpreted as a successful
queueing of the message for later
sending. The actual send will occur
when the device is able to send.