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.
In a nutshell the mobile telephone provider uses a SMS gateway to receive the email then send it to the desired phone as a SMS message. Now days automated messages are quite common i.e weather or Amanda alerts as well as waiting lines at restaurants and vehicle registration offices (at least in the US).
@michaelk & scasey....that is exaclt what I tried but it didn't work
@ AwesomeMachine....... It is not sent by cellular modem, it through the netwotk at the workplace.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
How exactly do you do this on Windows? Do you use an existing Outlook account or somwething else? Can you send an email to any email addresses with Linux? When you send to an email address other that the SMS gateway from PowerShell what email address is shown as the sender and do you have that set up on the Linux machinery?
I do this in Windows running a PS cmdlet. I am sending to an existing Outlook account and yes I can send emails to any email address using Linux. I already have emails being sent in Linux just fine. I never really notice what email is shown as the sender.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Perhaps I'm being a bit slow here but I still don't understand what exactly you are saying fails.
I asked what I did because, as I understand it, you are trying to send email from your PC to an SMTP server with the address of an email-to-text gateway and a text is not being sent. So, you should understand how important it is to know what credentials you are sending the SMTP server in Windows and Linux and whether there is a difference?
If I am wrong here please explain the exact process by which you are expecting the text message to be generated?
Sorry, I know I am being rude but I'm seeing a lot of "this doesn't work" but not much explanation of how you think it should work.
in a BASH script. Taking out "mobilenumber@vtext.com", sending to the email works just fine. I would like to send to a mobile number instead so it would just pop up on my cell with me having to log into the phone then search for the email. I hope I am explaining myself clearly
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
It looks like your SMTP server can't communicate with the gateway. Do you know which SMTP server you are using? Is this inside a corporate network you didn't set up the exchange servers on?
in a BASH script. Taking out "mobilenumber@vtext.com", sending to the email works just fine. I would like to send to a mobile number instead so it would just pop up on my cell with me having to log into the phone then search for the email. I hope I am explaining myself clearly
Some "is it plugged in" questions:
Is 'mobilenumber' a 10-digit number, no spaces or dashes?
Does the mail get to 'recipient@email.com' when that line of code is executed? If not, try using a comma instead of a space to separate the email addresses. The space worked on my server, but generally speaking, lists of email addresses should be comma seperated.
As 273 asked, can you ping/traceroute to vtext.com from your mail server?
Do you get any error or BOUNCE messages back? They should go to the sending user's email.
Do you have a GUI email application on that computer? Thunderbird or Evolution? What happens if you send to mobilenumber@vtext.com from the GUI? (BOUNCEes might be more obvious)
@273...yes it is in the corporate environment and I am using the same SMTP server used in other working scripts.
@michaelk... yes I am using the full phone number with area code, no dashes. I tried using Outlook to send an SMS and it does work. I tried using just the number on the command line and it didn't work.
@scasey....Yes mobile number is 10 digits, no spaces or dashes. The email does get to the recipient email when executed. I don't understand what you mean by this:
As 273 asked, can you ping/traceroute to vtext.com from your mail server? If you mean typing in command prompt "ping mobilenumber@vtext.com" I tried it, got an error "Ping request could no find host MOBILENUMBER"
I used a GUI email application (Outlook) and it works to an email and to a mobile number.
@273...yes it is in the corporate environment and I am using the same SMTP server used in other working scripts.
@michaelk... yes I am using the full phone number with area code, no dashes. I tried using Outlook to send an SMS and it does work. I tried using just the number on the command line and it didn't work.
@scasey....Yes mobile number is 10 digits, no spaces or dashes. The email does get to the recipient email when executed. I don't understand what you mean by this:
As 273 asked, can you ping/traceroute to vtext.com from your mail server? If you mean typing in command prompt "ping mobilenumber@vtext.com" I tried it, got an error "Ping request could no find host MOBILENUMBER"
I used a GUI email application (Outlook) and it works to an email and to a mobile number.
The ping command would be
Code:
ping vtext.com
one pings a domain, not an email address.
Did you try either:
1) mailx to the mobile number address only? or
2) separating the email addresses with a comma?
Outlook is likely (probably) not using the same email server as mailx. mailx would use sendmail or some other MTA on the server itself. Outlook in a corporate environment is probably using a MS mail server. Is your 'recipient@email.com' also outside your corporate network? If not, try an email address that is and see if that works.
What does your ~/.mailrc contain? That's where mailx is going to get information about the mail server.
@scasey.... I tried pinging "vtext.com" with 100% loss, request timed out. I tried 1 & 2 with no progress. I tried using email inside and outside the corporate network with no progress. Sending to an email outside the network I haven't received an email yet but remember, sending the emails is not the problem, I'm trying to send a SMS to a phone,
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by trickydba
...sending the emails is not the problem...
Sending the emails is the problem or, at least, you have not proven it is not.
Your problem seems to be that email sent from your Linux install to a specific address either fail or are in a format that it does not accept.
I am wondering what credentials you present to the exchange server and what credentials iot presents to the text gateway -- surely this isn't an open relay that anyone can email and send a text for free?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.