Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Saying can Linux send a message to a phone isn't really giving much of what you want to do. Are you looking to send an SMS? Are you looking to send an e-mail (in which case a mobile phone is no different) or perhaps use some form of IM? Asking can Linux connect to a phone (which itself maybe running linux!) is too much of a generic question.
it should work. you'd have to know how to format the email address so that the telefone company forwards it to the correct mobile number (all the major telco's have different domain names).
i wonder if your server is configured for smtp/sendmail or whatever.
i know with comcast they blacklist users not paying for their business speed from spamming emails (regardless of powershell vs. bash).
I can do this successfully in Powershell(yuck). I used the appropriate domain names too. I am trying to send a SMS, but I call it text. Sorry for the confusion
Yes, you can send a SMS text message to a phone via email. As stated if your system is not configured for outgoing mail the posted command will not work.
The quickest way might be to use a command line email client that connects to your email server using your email credentials. Most email providers provide the authentication methods, ports etc to manually configure a client and they can be saved to a configuration file if desired. mutt and alpine are the most common command CLI clients.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
So you do not have Outlook on the machine but are able to send email?
As stated above, you need a command-line email client and the correct configuration files to send email.
I would be surprised if the Windows machine does not have Outlook configured.
Just tested that syntax and it worked for me...received a SMS message on my Verizon phone.
Tried with two email addresses, as the OP showed, and both the actual email address and the phone received the message.
Question to the OP, does the "recipient@email.com" get the email?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.