× 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: Angela Wawrzaszek <wawrzaszeka@xxxxxxxxxxx>
  • Date: Fri, 9 Feb 2001 11:58:28 -0500

When I just invoke the cmd within the CL it puts embedded characters.  I do
the exact same thing with SNDDST command and its fine.  So I tend to believe
it doesn't like the fact that the parms in SNDEMAIL can be multiple, or
because it is made up of several factors but they have default values.

                                                                     
 call aklib/web@100c 'WAWRZASZEK@AUSTEEL.COM'                               
   1601 - SNDEMAIL                                                          
   ADDRESSEE((X'E6C1E6D9E9C1E2E9C5D27CC1E4E2E3C5C5D34BC3D6D4404040404040404 
   040404000000F0000000000000000000000000000'))                             
   SENDER(WAWRZASZEK@AUSTEEL.COM 'Web Release') SUBJECT(TEST) MESSAGE('This 
   is a test message')                                                      
 Path name contains embedded nulls.                                         
 Error found on SNDEMAIL command.                                           
        - RETURN        /* RETURN due to end of CL program */               


THIS IS MY CL
**********************************************************/
 PGM        PARM(&ADDRESS)                                 
                                                           
 DCL        VAR(&ADDRESS) TYPE(*CHAR) LEN(50)              
 MONMSG     MSGID(CPF0000)                                 
                                                           
 SNDEMAIL   ADDRESSEE((&ADDRESS)) +                        
              SENDER(WAWRZASZEK@AUSTEEL.COM 'Web +         
              Release') SUBJECT(TEST) MESSAGE('This is +   
              a test message')                             
 


HERES THE COMMAND:

***********************************************************/ 
  CMD        PROMPT('Send an E-mail Message')                
  PARM       KWD(ADDRESSEE) TYPE(ELEM1) MIN(1) MAX(15) +     
               CHOICE(*NONE) PROMPT('Recipient(s)' 2)        
  PARM       KWD(SUBJECT) TYPE(*CHAR) LEN(256) DFT(*NONE) +  
               SPCVAL((*NONE '')) EXPR(*YES) +               
               PROMPT('Subject')                             
  PARM       KWD(FILENAME) TYPE(*PNAME) LEN(256) +           
               DFT(*NONE) SNGVAL((*NONE)) MAX(30) +          
               EXPR(*YES) PROMPT('File attachment')          
  PARM       KWD(MESSAGE) TYPE(*CHAR) LEN(2048) +            
               DFT(*NONE) SPCVAL((*NONE '')) EXPR(*YES) +    
                                    PROMPT('Message')

             PARM       KWD(SENDER) TYPE(ELEM2) DFT(*NETWORK) +        
                          SNGVAL((*NETWORK)) PROMPT('Sender' 3)        
 ELEM1:      ELEM       TYPE(*PNAME) LEN(256) MIN(1) EXPR(*YES) +      
                          PROMPT('E-mail address of recipient')        
             ELEM       TYPE(*CHAR) LEN(256) DFT(*NONE) +              
                          SPCVAL((*NONE '')) EXPR(*YES) +              
                          PROMPT('Name of e-mail recipient')           
             ELEM       TYPE(*CHAR) LEN(1) DFT(*PRI) SPCVAL((*PRI +    
                          '0') (*CC '1') (*BCC '2')) EXPR(*YES) +      
                          PROMPT('Recipient type')                     
 ELEM2:      ELEM       TYPE(*PNAME) LEN(256) EXPR(*YES) +             
                          PROMPT('E-mail address of sender')           
             ELEM       TYPE(*CHAR) LEN(256) EXPR(*YES) PROMPT('Name + 
                          of e-mail sender')                           
****************** End of data ****************************************

                                                          
Angie Wawrzaszek
M.I.S. Department

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



+---
| 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
+---
+---
| 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 ...

Follow-Ups:

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.