Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send mail through Rexx?

Status
Not open for further replies.

blizz15

Programmer
Jan 23, 2004
2
US
Hi everybody,

Currently I am working on porting some Rexx code from old OS/2 to Windows. I am working on this one file in which I have to email a report to a few people. in OS/2 the following was used:

'sendmail -t -af ' MsgFile

I learned that I have to use Blat to do the same thing in windows. This is what I tried: (Assuming MsgFile would replace "mytext.txt").

call blat.exe "mytext.txt" -s "Testing email-day-ssfs" -t 'theblizz15@yahoo.com'

I used my email address just to see if it works. However Rexx is yelling at me on that statement. It is referring to a bad arithmetic expression there. I have tried many combinations. Does anyone have any ideas how to invoke the blast.exe correctly?
 
I'm MVS, not Windows, so this may be all wet:

REXX may be seeing the '-s' and '-t' as subtractions. I suggest you compose the parameter string for the exe as
Code:
parm = "mytext.txt -s 'Testing ...' -t theblizz..."
(Note that the outer quotes are doublequotes and the inner are apostrophes.) Now you can
Code:
call blat.exec parm

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top