Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    USA
    Posts
    364
    Thanks
    12
    Thanked 6 Times in 6 Posts

    Send email/text message (SMS) from command line?

    Hi,
    Are there any small .exe programs that can do this? Ideally I want to send a text message from my computer (Windows 7) but email seems more prevalent, so email will also work for my purposes (I'll just email to the carrier's sms email. ex: 15551234567@vtext.com for verizon phones)

    I had difficulty finding a program that does this.

    My current solution involves sending a message thru an instant messaging client, which isn't very elegant and has a few issues.

    Thanks!

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    USA
    Posts
    364
    Thanks
    12
    Thanked 6 Times in 6 Posts
    Anyone know a tool that does this?

  • #3
    Regular Coder
    Join Date
    Jul 2010
    Location
    St George, UT
    Posts
    138
    Thanks
    6
    Thanked 17 Times in 17 Posts
    You could write one SUPER simple in C# but you would need to setup a mail server on your local machine... or setup a PHP script on a remote server and make a GET request in the application.

    A quick Google search brought up this

    http://www.petri.co.il/send_mail_from_script.htm

  • #4
    Regular Coder primefalcon's Avatar
    Join Date
    Aug 2008
    Location
    /home/primefalcon/
    Posts
    678
    Thanks
    8
    Thanked 39 Times in 39 Posts
    alpine is a command line email client and is cross platform

    http://www.washington.edu/alpine/acquire/

    just scroll down to windows downloads

  • #5
    Regular Coder
    Join Date
    Jan 2004
    Location
    USA
    Posts
    364
    Thanks
    12
    Thanked 6 Times in 6 Posts
    Thanks wildreason. I'm trying out the bmail program on that page I'm trying to get it to work with Gmail's free smtp server, but I can't get it to work. Does anyone know what I'm missing?

    Here's what I have:
    Code:
    C:\>bmail -s smtp.gmail.com -p 465 -t [recipient email] -f [sender email] -b "MESSAGE" -a "SUBJECT"
    The program returns:
    Code:
    Opening connection to smtp.gmail.com [74.125.127.109] on port 465
    but doesn't do anything after that.

  • #6
    Regular Coder
    Join Date
    Jan 2004
    Location
    USA
    Posts
    364
    Thanks
    12
    Thanked 6 Times in 6 Posts
    Nevermind. I got it to work using the mailsend program on that same page!

    If anyone was curious:
    Code:
    mailsend -smtp smtp.gmail.com -port 587 -starttls -v -f [sender email] +cc +bc -auth-login -user [username] -pass "[password]" -t [recipient email] -sub "THIS IS THE SUBJECT" -M "THIS IS THE MSG"
    btw, how do you mark a thread as resolved?
    Last edited by qwertyuiop; 08-08-2010 at 06:03 AM.
    Running Windows 7 x64

  • #7
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you must be able to see mark this topic resolved or similar kind of button under your thread started.
    Quote Originally Posted by qwertyuiop View Post
    Nevermind. I got it to work using the mailsend program on that same page!

    If anyone was curious:
    Code:
    mailsend -smtp smtp.gmail.com -port 587 -starttls -v -f [sender email] +cc +bc -auth-login -user [username] -pass "[password]" -t [recipient email] -sub "THIS IS THE SUBJECT" -M "THIS IS THE MSG"
    btw, how do you mark a thread as resolved?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •