I'd suspect the 50 byte &email parm is getting truncated to 32 bytes... This is a common problem with issuing a CALL from the command line.

Eric

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Jim Waymire
Sent: Tuesday, October 16, 2007 12:00 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Send Email from the AS400 - quit working!


from: "Jim Franz" <franz400@xxxxxxxxxxxx>
subject: Re: Send Email from the AS400 - quit working!

can you show us the email address sent?
perhaps it is invalid address format?

If I use the value rather than passing a parm: I made a copy of this and
passed the 2nd and 3rd parm, but not the email address and it worked.

DCL VAR(&EMAIL) TYPE(*CHAR) LEN(50) +
VALUE('jwaymire@xxxxxxxxxxxxxxxxxx')
DCL VAR(&SUBJECT) TYPE(*CHAR) LEN(20) +
VALUE('E-Mail')
DCL VAR(&MSG) TYPE(*CHAR) LEN(200) VALUE('This +
is a test from the sendtest cl')

Calling it manually and passing the parms, which has quit working!

call sndemail2 parm('jwaymire@xxxxxxxxxxxxxxxxxx' 'E-Mail2' 'Test from
sndemail2')

The normal usage of this is called from a program and uses a file to get the
email addresses depending on the job.



This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].