Send mail without a file

Send mail without a file

Post by vancouverc » Sat, 19 Jan 2008 06:23:48



Is it possible to send a VMS email without specifying a file to send?
Normal command is:
$ mail somefile.txt someuser /sub=Test
where somefile.txt is sent as the body.

I want to send this
$ mail "Some text that I like!" someuser /sub=Test

TIA
Van
 
 
 

Send mail without a file

Post by Frank » Sat, 19 Jan 2008 06:30:49


$ MAIL SYS$INPUT: someuser /subject="Test"
Some text that I like
$

 
 
 

Send mail without a file

Post by Jan-Erik S » Sat, 19 Jan 2008 07:13:10


$ mail nl: someuser /sub=Test
 
 
 

Send mail without a file

Post by VAXman- » Sat, 19 Jan 2008 07:28:27

In article <WpQjj.2907$ XXXX@XXXXX.COM >, =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= < XXXX@XXXXX.COM > writes:


That will send a blank body message. Instead of NL:, use SYS$INPUT:
Then follow up with the text. A previous post has already covered
this.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

"Well my son, life is like a beanstalk, isn't it?"

http://www.yqcomputer.com/
 
 
 

Send mail without a file

Post by Ken Robins » Sat, 19 Jan 2008 07:32:32


$ pipe write sys$output "Some text that I like" | mail/sub="This is a
test of PIPE" sys$pipe " XXXX@XXXXX.COM "

Ken
 
 
 

Send mail without a file

Post by glen herrm » Sat, 19 Jan 2008 07:43:05


Maybe, but it might create a file anyway.

Many years ago on a VMS systems, my account was configured with
the wrong name for my home directory. I wanted to send mail to
the system administrator, but I couldn't, as it wanted to write
the message into a file. (In my directory...)

-- glen
 
 
 

Send mail without a file

Post by norm.rapha » Sat, 19 Jan 2008 07:49:24

This is a multipart message in MIME format.
FrankS < XXXX@XXXXX.COM > wrote on 01/17/2008 04:30:49 PM:



More properly:
$!....
$ MAIL SYS$INPUT: someuser /subject="Test"
$ DECK
Some text that I like
Some more text
etc.
$EOD
$!....




<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br><font size=2><tt>FrankS < XXXX@XXXXX.COM > wrote on 01/17/2008
04:30:49 PM:<br>
<br>

to send?<br>
<br>
<br><font size=2><tt>More properly:</tt></font>
<br><font size=2><tt>$!....</tt></font>
<br><font size=2><tt>$ MAIL SYS$INPUT: someuser /subject="Test"</tt></font>
<br><font size=2><tt>$ DECK</tt></font>
<br><font size=2><tt>Some text that I like</tt></font>
<br><font size=2><tt>Some more text</tt></font>
<br><font size=2><tt>etc.</tt></font>
<br><font size=2><tt>$EOD</tt></font>
<br><font size=2><tt>$!....</tt></font>
<br>
<br><font size=2><tt><br>
</tt></font>
 
 
 

Send mail without a file

Post by Jan-Erik S » Sat, 19 Jan 2008 08:01:55


I know. A body was not specified as an requirement...

On the other hand, sys$input could also be seen as
a "file"... :-)

$ mail
MAIL> send
To: someuser
Subj: Test
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:
Some message...
<Ctrl-Z>
MAIL> <Ctrl-Z>
$

34 kaystrokes for the sys$input example.
26 keystrokes for my example.

Not counting the "body" itself, <Ctrl-Z> as
one keystroke and including all CR's.


Jan-Erik.
 
 
 

Send mail without a file

Post by David J Da » Wed, 23 Jan 2008 07:53:08


The way SMTP is implemented for outbound MAIL, it results in a "batch"
(server queue) job, which does actually require a file.

The OP was likely thinking along the lines of the responses he got which
mention the PIPE verb or image data in-line.

David J Dachtera
DJE Systems
 
 
 

Send mail without a file

Post by AEF » Wed, 23 Jan 2008 11:57:05


Yes. Type MAIL and press Enter and follow the prompts.


No.


YW.

AEF