× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Help using SNDEMAIL
  • From: "Brendan Bispham" <midrangel@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 9 Feb 2001 11:44:28 -0000
  • Importance: Normal

You could call the CL directly, but the 7847 field is expecting a whole
bunch of binary numbers and it all gets a little complicated to work out.

what happens if your CL just does the SNDEMAIL? The path gets null
characters? Your CL should be able to do this OK:

PGM &address
DCL &address *char 100
SNDEMAIL addressee(&address) subject(test)
ENDPGM



-----Original Message-----
From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On
Behalf Of Angela Wawrzaszek
Sent: 07 February 2001 17:15
To: Midrange Mail List (E-mail)
Subject: Help using SNDEMAIL


I have been using this command in a few CL programs however the recipient
has always been "hard coded".   I am now trying to use this from an RPG
program and I cannot send parms.  I tried just calling a CL program that
executes the SNDEMAIL command and pass the email address.  However I get
that the path contains null characters.  How can I pass an email address to
this command or the CL without having to basically recreate the whole
program again.

I see from the CL that Address is 7847 characters long to account for
multiple recipients.  Do I have to define a DS and then pass the whole DS in
specifying where each address could appear,  name of recipient and the type
(ie. *PRI...)  or can I somehow just pass an email address and message to
the command and except all other defaults so the DS will get created when
the CL is called?
Angie Wawrzaszek
M.I.S. Department

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.