DIYbanter

DIYbanter (https://www.diybanter.com/)
-   Electronic Schematics (https://www.diybanter.com/electronic-schematics/)
-   -   Send Mail from Command Line? (https://www.diybanter.com/electronic-schematics/209619-send-mail-command-line.html)

Jim Thompson May 28th 07 02:19 AM

Send Mail from Command Line?
 
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 |
| http://www.analog-innovations.com | 1962 |

America: Land of the Free, Because of the Brave

Jamie May 28th 07 02:41 AM

Send Mail from Command Line?
 
Jim Thompson wrote:

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

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
username,password,To,From,subject,textB ody.txt,attachments.exe+.....


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


Jim Thompson May 28th 07 03:00 AM

Send Mail from Command Line?
 
On Sun, 27 May 2007 21:41:25 -0400, Jamie
t wrote:

Jim Thompson wrote:

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

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
username,password,To,From,subject,text Body.txt,attachments.exe+.....


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

Martin Riddle May 28th 07 03:36 AM

Send Mail from Command Line?
 
"Jim Thompson" wrote in
message ...
On Sun, 27 May 2007 21:41:25 -0400, Jamie
t wrote:

Jim Thompson wrote:

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

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
username,password,To,From,subject,tex tBody.txt,attachments.exe+.....


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

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

This sounds like it would work..... http://www.blat.net/

Cheers



Spehro Pefhany May 28th 07 04:37 AM

Send Mail from Command Line?
 
On Sun, 27 May 2007 19:00:12 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 21:41:25 -0400, Jamie
wrote:

Jim Thompson wrote:

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

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
username,password,To,From,subject,tex tBody.txt,attachments.exe+.....


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



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.

http://www.indigostar.com/sendmail.htm

Free trial version for download.


Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

IanM May 28th 07 09:50 AM

Send Mail from Command Line?
 

"Jim Thompson" wrote in
message ...
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 |
| http://www.analog-innovations.com | 1962 |

America: Land of the Free, Because of the Brave


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

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


Tom Del Rosso May 28th 07 01:52 PM

Send Mail from Command Line?
 
"Jim Thompson" wrote
in message
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.


blat is the program of choice (www.blat.net). 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.



John Larkin May 28th 07 06:21 PM

Send Mail from Command Line?
 
On Sun, 27 May 2007 18:19:43 -0700, Jim Thompson
wrote:

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



The Windows versions of PowerBasic (PBCC being the simplest one) have
all the hooks you need to send and receive email. You could do what
you want with maybe a 30-line program. C'mon Jim, learn how to
program!

John


Jim Thompson May 28th 07 07:13 PM

Send Mail from Command Line?
 
On Sun, 27 May 2007 22:37:08 -0500, Spehro Pefhany
wrote:

On Sun, 27 May 2007 19:00:12 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 21:41:25 -0400, Jamie
t wrote:

Jim Thompson wrote:

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
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
username,password,To,From,subject,te xtBody.txt,attachments.exe+.....


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



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.

http://www.indigostar.com/sendmail.htm

Free trial version for download.


Best regards,
Spehro Pefhany


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

Jim Thompson May 28th 07 08:05 PM

Send Mail from Command Line?
 
On Mon, 28 May 2007 11:13:48 -0700, Jim Thompson
wrote:

On Sun, 27 May 2007 22:37:08 -0500, Spehro Pefhany
wrote:

On Sun, 27 May 2007 19:00:12 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 21:41:25 -0400, Jamie
et wrote:

Jim Thompson wrote:

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
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
username,password,To,From,subject,t extBody.txt,attachments.exe+.....

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



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.

http://www.indigostar.com/sendmail.htm

Free trial version for download.


Best regards,
Spehro Pefhany


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


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

Jim Thompson May 28th 07 08:47 PM

Send Mail from Command Line?
 
On Mon, 28 May 2007 15:15:58 -0500, Spehro Pefhany
wrote:

On Mon, 28 May 2007 11:13:48 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 22:37:08 -0500, Spehro Pefhany
wrote:

On Sun, 27 May 2007 19:00:12 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 21:41:25 -0400, Jamie
jamie_ka1lpa_not_valid_after_ka1lpa_@charter. net wrote:

Jim Thompson wrote:

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
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
username,password,To,From,subject, textBody.txt,attachments.exe+.....

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


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.

http://www.indigostar.com/sendmail.htm

Free trial version for download.


Best regards,
Spehro Pefhany


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


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


Best regards,
Spehro Pefhany


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

Spehro Pefhany May 28th 07 09:15 PM

Send Mail from Command Line?
 
On Mon, 28 May 2007 11:13:48 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 22:37:08 -0500, Spehro Pefhany
wrote:

On Sun, 27 May 2007 19:00:12 -0700, the renowned Jim Thompson
wrote:

On Sun, 27 May 2007 21:41:25 -0400, Jamie
et wrote:

Jim Thompson wrote:

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
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
username,password,To,From,subject,t extBody.txt,attachments.exe+.....

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



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.

http://www.indigostar.com/sendmail.htm

Free trial version for download.


Best regards,
Spehro Pefhany


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


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"
Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

Jonathan Kirwan May 28th 07 11:19 PM

Send Mail from Command Line?
 
On Mon, 28 May 2007 10:21:32 -0700, John Larkin
wrote:

On Sun, 27 May 2007 18:19:43 -0700, Jim Thompson
wrote:

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


The Windows versions of PowerBasic (PBCC being the simplest one) have
all the hooks you need to send and receive email. You could do what
you want with maybe a 30-line program. C'mon Jim, learn how to
program!

John


Agreed. For command line use, I just use Perl to do what Jim seems to
be talking about. It's very easy to code up, using a free library,
and Parl is pretty easy to use with lists, if desired. No compilation
of the code required and probably fewer lines than 30, too.

Jon

feebo May 30th 07 05:06 PM

Send Mail from Command Line?
 
On Sun, 27 May 2007 19:00:12 -0700, Jim Thompson
wrote:

..

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


does your son know how to use a search engine? (can you spell
www.just****inggoogleit.com ?)



All times are GMT +1. The time now is 08:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter