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



Create a variable within the CL program to hold the
subject and body text, set the variables and then simply
execute the SNDEMAIL command:

DCL VAR(&SUBJECT) TYPE(*CHAR) LEN(90)
DCL VAR(&MESSAGE) TYPE(*CHAR) LEN(180)

CHGVAR VAR(&SUBJECT) VALUE('This is an Example E-Mail subject line')

CHGVAR VAR(&MESSAGE) VALUE('Attached is your report in XXX +
format.<NL><NL>Please do not respond to this message.')

SNDEMAIL ADDRESSEE((&ADDRESS &FULLNAME)) +
SENDER(&RTNADDR &RTNNAME) +
SUBJECT(&SUBJECT) +
MESSAGE(&MESSAGE) +
ADDTRAILER(*YES)


Terry Winchester
Programmer/Analyst
________________________________
The Raymond Corporation
terry.winchester@xxxxxxxxxxxxxxx

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Rich_Weislak@xxxxxxxxx
Sent: Thursday, May 13, 2010 3:19 PM
To: Midrange Systems Technical Discussion
Cc: 'Midrange Systems Technical Discussion';
midrange-l-bounces@xxxxxxxxxxxx
Subject: RE: Question on email

Its not the SNDEMAIL program that I am questioning, I 'm
just trying to
create a holding area so that I can build on the fly the
message that will
go into the subject line, I know it hard for me to explain
what I need
done, if you look at the example that I gave, I need to
create that with
the subject line by reading in a database file. I hope this help.....

Rich Weislak




"Dennis Lovelady" <iseries@xxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
05/13/2010 03:00 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
"'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
cc

Subject
RE: Question on email






All, I'm using the SNDEMAIL command, I need to create either a CL or
rpg
program that will read a database file and created one big message
field
to be send out, I know it hard to explain but here is a
example, with
the
message box I need to put in the following:

job: xxxxxxx
Total record: xxxxxxxx
Accout number: xxxxxxx

How would I do this with a program or a cl program????

Not familiar with a command called SNDEMAIL. Do you know the
vendor/creator? If not, can you tell what library/ies it's
found in when
you do
WRKOBJ SNDEMAIL
?

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"I knew I was an unwanted baby when I saw that my bath toys
were a toaster
and a radio."
-- Joan Rivers



--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





CONFIDENTIALITY NOTICE: This message, including any
attachments, is for
the sole use of the intended recipient(s) and may contain
confidential and
privileged information. Any unauthorized review, use,
disclosure or distribution
is prohibited. If you are not the intended recipient, please
contact the
sender by reply e-mail and destroy all copies of the original message.
--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



Confidentiality Notice:

The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is
not authorized and may be unlawful.




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.