I want to send sSMS periodically to certain Mobile numbers (Indian mobile numbers.) Is there a way I can send an SMS with my own cellphone number or by creating an account on a site like way2sms?
-
5I'm voting to close this question as off-topic because it is about finding an external service, not about U&LJeff Schaller– Jeff Schaller ♦2016-12-24 15:00:59 +00:00Commented Dec 24, 2016 at 15:00
-
A shell script can do anything you want -- or can -- so either an email or a curl call, but beyond that is outside this site's scope.Jeff Schaller– Jeff Schaller ♦2016-12-24 15:05:28 +00:00Commented Dec 24, 2016 at 15:05
2 Answers
This question hasn't much to do with Linux, but many providers also allow you to send a SMS to a mobile number via email, e.g. to send a SMS to 555-1234 you would send an email message to [email protected] or similar. In this case on Linux you can achieve what you want via the command
mail [email protected] < sms.txt
-
1I'm glad your answer was added before the question was closed. It was my impression that this Unix & Linux site included using the shell scripting functions for normal computer tasks. The function, in this case, is the "mail" command which you provided. Hope the powers-that-be will reopen the question so that this resolution can remain easy to find. I'm upvoting this invaluable command you provided.L. D. James– L. D. James2018-07-23 14:12:27 +00:00Commented Jul 23, 2018 at 14:12
Yes, but you need an SMS Gateway account. Specific details on using the gateway are available on the providers sites.
Here's an example:
curl http://textbelt.com/text -d number=5551551555 -d "message=hello from OSXDaily.com"
http://osxdaily.com/2014/03/12/send-sms-text-message-from-command-line/
-
This answer would be more useful if you could verify that this method worked in India, and also specified a workable provider for this service. I'm also in India, and am somewhat interested in such a service.Faheem Mitha– Faheem Mitha2015-05-16 09:18:25 +00:00Commented May 16, 2015 at 9:18
-
@FaheemMitha ehm, I am not so sure. The OP is not responsible for checking if the method works everywhere.sitilge– sitilge2016-12-24 00:21:10 +00:00Commented Dec 24, 2016 at 0:21
-
Everywhere? The question specifies India.Faheem Mitha– Faheem Mitha2016-12-24 14:38:22 +00:00Commented Dec 24, 2016 at 14:38