PDA

View Full Version : Send email/text message (SMS) from command line?


qwertyuiop
07-29-2010, 08:14 AM
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!

qwertyuiop
08-07-2010, 08:05 PM
Anyone know a tool that does this?

wildreason
08-07-2010, 08:24 PM
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

primefalcon
08-08-2010, 12:42 AM
alpine is a command line email client and is cross platform

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

just scroll down to windows downloads

qwertyuiop
08-08-2010, 05:39 AM
Thanks wildreason. I'm trying out the bmail (http://www.beyondlogic.org/consulting/cmdlinemail/cmdlinemail.htm) 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:C:\>bmail -s smtp.gmail.com -p 465 -t [recipient email] -f [sender email] -b "MESSAGE" -a "SUBJECT"

The program returns:Opening connection to smtp.gmail.com [74.125.127.109] on port 465 but doesn't do anything after that.

qwertyuiop
08-08-2010, 05:57 AM
Nevermind. I got it to work using the mailsend program on that same page! :D

If anyone was curious: 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?

johntli
08-11-2010, 07:27 AM
I think you must be able to see mark this topic resolved or similar kind of button under your thread started.
Nevermind. I got it to work using the mailsend program on that same page! :D

If anyone was curious: 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?