mail utility wont send to my cellphone?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
Im writing a script, and I want it to alert me via text message. I can send my self texts via things like gmail using: "number@vtext.com", and I can send emails to gmail using the mail
command, but when I try to get my script to send me a text message, I never get it, I'm not sure why.
#!/bin/bash
set -vx
m="The cookie jar is open."
s="Give me a cookie"
id="@vtext.com"
num="0000000000" #fake number for this post.
echo -e $m | mail -s $s $num$id
How can I send sms to my cellphone? what am I doing wrong?
my carrier is verison.
command-line email mail
 |Â
show 3 more comments
up vote
2
down vote
favorite
Im writing a script, and I want it to alert me via text message. I can send my self texts via things like gmail using: "number@vtext.com", and I can send emails to gmail using the mail
command, but when I try to get my script to send me a text message, I never get it, I'm not sure why.
#!/bin/bash
set -vx
m="The cookie jar is open."
s="Give me a cookie"
id="@vtext.com"
num="0000000000" #fake number for this post.
echo -e $m | mail -s $s $num$id
How can I send sms to my cellphone? what am I doing wrong?
my carrier is verison.
command-line email mail
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes likeecho -e "$m" | mail -s "$s" $num$id
I don't think the-e
is needed. I send from my scripts and I don't have the-e
.
â Terrance
Apr 26 at 13:39
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
2
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
1
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
1
Check your/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.
â Terrance
Apr 26 at 17:47
 |Â
show 3 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Im writing a script, and I want it to alert me via text message. I can send my self texts via things like gmail using: "number@vtext.com", and I can send emails to gmail using the mail
command, but when I try to get my script to send me a text message, I never get it, I'm not sure why.
#!/bin/bash
set -vx
m="The cookie jar is open."
s="Give me a cookie"
id="@vtext.com"
num="0000000000" #fake number for this post.
echo -e $m | mail -s $s $num$id
How can I send sms to my cellphone? what am I doing wrong?
my carrier is verison.
command-line email mail
Im writing a script, and I want it to alert me via text message. I can send my self texts via things like gmail using: "number@vtext.com", and I can send emails to gmail using the mail
command, but when I try to get my script to send me a text message, I never get it, I'm not sure why.
#!/bin/bash
set -vx
m="The cookie jar is open."
s="Give me a cookie"
id="@vtext.com"
num="0000000000" #fake number for this post.
echo -e $m | mail -s $s $num$id
How can I send sms to my cellphone? what am I doing wrong?
my carrier is verison.
command-line email mail
edited Apr 26 at 13:35
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
dessert
19.8k55594
19.8k55594
asked Apr 26 at 13:32
![](https://i.stack.imgur.com/nKCzg.png?s=32&g=1)
![](https://i.stack.imgur.com/nKCzg.png?s=32&g=1)
j0h
5,9761348105
5,9761348105
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes likeecho -e "$m" | mail -s "$s" $num$id
I don't think the-e
is needed. I send from my scripts and I don't have the-e
.
â Terrance
Apr 26 at 13:39
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
2
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
1
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
1
Check your/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.
â Terrance
Apr 26 at 17:47
 |Â
show 3 more comments
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes likeecho -e "$m" | mail -s "$s" $num$id
I don't think the-e
is needed. I send from my scripts and I don't have the-e
.
â Terrance
Apr 26 at 13:39
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
2
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
1
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
1
Check your/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.
â Terrance
Apr 26 at 17:47
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes like
echo -e "$m" | mail -s "$s" $num$id
I don't think the -e
is needed. I send from my scripts and I don't have the -e
.â Terrance
Apr 26 at 13:39
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes like
echo -e "$m" | mail -s "$s" $num$id
I don't think the -e
is needed. I send from my scripts and I don't have the -e
.â Terrance
Apr 26 at 13:39
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
2
2
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
1
1
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
1
1
Check your
/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.â Terrance
Apr 26 at 17:47
Check your
/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.â Terrance
Apr 26 at 17:47
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
If using gmail you will have to enable "less secure apps" as done here
https://support.google.com/accounts/answer/6010255?hl=en
I ran across the same problem in windows using CDO.Message and had to inform gmail that I was using "less secure apps" before my text message would work.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If using gmail you will have to enable "less secure apps" as done here
https://support.google.com/accounts/answer/6010255?hl=en
I ran across the same problem in windows using CDO.Message and had to inform gmail that I was using "less secure apps" before my text message would work.
add a comment |Â
up vote
0
down vote
If using gmail you will have to enable "less secure apps" as done here
https://support.google.com/accounts/answer/6010255?hl=en
I ran across the same problem in windows using CDO.Message and had to inform gmail that I was using "less secure apps" before my text message would work.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If using gmail you will have to enable "less secure apps" as done here
https://support.google.com/accounts/answer/6010255?hl=en
I ran across the same problem in windows using CDO.Message and had to inform gmail that I was using "less secure apps" before my text message would work.
If using gmail you will have to enable "less secure apps" as done here
https://support.google.com/accounts/answer/6010255?hl=en
I ran across the same problem in windows using CDO.Message and had to inform gmail that I was using "less secure apps" before my text message would work.
answered Apr 26 at 14:29
![](https://lh6.googleusercontent.com/-dOp8g8xtE9Y/AAAAAAAAAAI/AAAAAAAAAaU/e7wzEUULsmM/photo.jpg?sz=32)
![](https://lh6.googleusercontent.com/-dOp8g8xtE9Y/AAAAAAAAAAI/AAAAAAAAAaU/e7wzEUULsmM/photo.jpg?sz=32)
Joseph Stateson
13
13
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028416%2fmail-utility-wont-send-to-my-cellphone%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
If you have your system able to send via command line setup like linode.com/docs/email/postfix/⦠then you might be missing quotes like
echo -e "$m" | mail -s "$s" $num$id
I don't think the-e
is needed. I send from my scripts and I don't have the-e
.â Terrance
Apr 26 at 13:39
-e was for something else not included, but I don't think it should hurt the overall functionality either. Ill give your recommendation a try, thanks or looking.
â j0h
Apr 26 at 13:54
2
The system running this, is this on a Residential connection, or is it a dedicated server like a VPS? Most residential ISPs are 'blacklisted' for email sources, and aren't permitted to send emails out as an SMTP / Mail Origin point. (unless it's routed over GMail or a third-party server which actually handles the sending of the message to the destination 'address')
â Thomas Wardâ¦
Apr 26 at 14:01
1
@j0h Have you tried to send something to your phone by using your GMail Web App?
â Terrance
Apr 26 at 15:49
1
Check your
/var/log/mail.log
when you try to send. It might help pinpoint more of what is going on.â Terrance
Apr 26 at 17:47