Send Mail from Command Line?

May 28, 2007 19 Replies

Anyone know of a good program that can send E-mail from the Command Line? ...Send a filename to an address?



All I've found don't accommodate a password. I guess the authors assume you are resident with the SMTP server.



...Jim Thompson



-- | James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | |

formatting link
| 1962 | America: Land of the Free, Because of the Brave


Well, I do programming and yes, I can code a smtp mail program to run on a command line how ever, it still requires a user name and password to send. There is information stored in the registry that helps you with this how ever, not every uses Outlook since it is very week.

In any case, if you can supply this info then it would be easy to encode that on the command line. something like. sendmail ,,,,,,.....

"I\'m never wrong, once i thought i was, but was mistaken" Real Programmers Do things like this. http://webpages.charter.net/jamie_5

I have a son who can do that, and he can spell correctly ;-)

I was just looking for an off-the-shelf product.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

"Jim Thompson" wrote in message news: snipped-for-privacy@4ax.com...

This sounds like it would work.....

formatting link

Cheers

This is a simple program that seems to work okay. If your smtp server requires authentication it might bother you that the password is stored in plaintext in the ini file.

formatting link

Free trial version for download.

Best regards, Spehro Pefhany

"it\'s the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com

"Jim Thompson" wrote in message news: snipped-for-privacy@4ax.com...

Hi Jim,

look for a command line program that uses MAPI to make Eudora send mail.

I have one that complemented something I do a lot

pkzip ddmmyy.zip somefiles cemail ddmmyy.zip someone_@_somewhere_.com

nowadays I tend to use winzip and then winzip's Mail Archive menu item, this also uses MAPI to drive your own email client.

regards,

Ian

Posted via a free Usenet account from http://www.teranews.com

blat is the program of choice

formatting link
It takes passwords for different types of logins, sends attachments, etc.

And it's free. Only problem is the latest version (2.6.2) has a bug in which, if you run it from a scheduled task while the user is not logged on, it doesn't work. Version 2.6.1 has no problem that I ever saw, and I run it every day on a dozen PCs and servers.

Reply in group, but if emailing add another zero, and remove the last word.

Well, most are and chances are you are, too :)

Windows from 2k on and Linux come with an SMTP server.

Gerhard

To send outside of my local network I need to login to my ISP's server, or an independent server such as GoDaddy (which I use).

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

Hi Spehro, I need to set PORT number other than standard, but can find nothing in the manual for how to set port.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

Nothing in manual, but added line is INI file "Port=wxyz", then it works.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

I got it working by adding a "PORT=" line in the INI file.

Now I have all my bells and whistles working for E-mail redirection to my cell phone. Text message beeps me to login and check my E-mail ;-)

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

I don't see that option either. Hmm.. looks like a residential address.

Best regards, Spehro Pefhany

"it\'s the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com

I see you got your problem solved already, but just out of curiosity... If you can connect with SMTP to GoDaddy (I assume this means that your ISP lets port 25 through), why can't you have a local SMTP server do the delivery?

Gerhard

My ISP (Cox) DOES NOT allow connections to other servers via Port 25, or to Cox' servers from non-Cox origination points.

So I connect to GoDaddy's SMTP relay via another port.

The big advantage is that I can access GoDaddy from anywhere.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

Mine doesn't either. So, I use port 587 and it worketh just fine ;-)

Regards, Joerg http://www.analogconsultants.com

Adelphia, oops Comcast, servers don't either. The ATT business Internet POP servers allow access from outside the AT&T network though. I have Individual.net for Usenet because I can get to their servers from either (or work, back when that mattered;).

Keith

I have AT&T, formerly SBC. Roughly a couple years ago they blocked port

  1. Of course out of the blue without prior warning. So I switched it to the alternative port.
Regards, Joerg http://www.analogconsultants.com

even if the don't let 25 through you can still have local smtp, just tell your server to authenticate and send via your ISPs server.

Bye. Jasen

Or just use port 587 instead.

Regards, Joerg http://www.analogconsultants.com

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required