mail utility wont send to my cellphone?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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.







share|improve this question






















  • 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














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.







share|improve this question






















  • 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












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.







share|improve this question














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.









share|improve this question













share|improve this question




share|improve this question








edited Apr 26 at 13:35









dessert

19.8k55594




19.8k55594










asked Apr 26 at 13:32









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 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
















  • 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















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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 26 at 14:29









        Joseph Stateson

        13




        13



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491