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



Alex,

the problem can be best described as follows: can I create a parameter string
in rpg containing multiple lines (CR/LF) to be used by qcmdexc api?

If I'm using -preferred- only one text parameter how can i pass multiple
lines and act accordingly when sending the mail with the javamail api?

I think I'll have to split up the text parameter (528) into multiple
lines of 80 characters at the prompt or use a special line delimeter character.

Geert

-----Original Message-----
From: Alex Pinsky [mailto:apinsky@aeropostale.com]
Sent: donderdag 2 januari 2003 14:37
To: java400-l@midrange.com
Subject: RE: CR+LF?


Hi Geert,
In your Java program that send an email message - can you say that email is 
being sent in HTML format. There should be a method to set a Header for you 
email message. After that you can just include HTML tag <br> into your email 
text every time when you need a LF.
Alex

-----Original Message-----
From: Geert Van Landeghem [mailto:gvl@reynders.com]
Sent: Thursday, January 02, 2003 8:22 AM
To: java400-l@midrange.com
Subject: RE: CR+LF?


Dieter,

I did try to add '\n' in the rpg program but this doesn't work either.
I need a method to enter a lot of text (with LF/CR) programmatically in a
parameter on a command so that the java program being called can interprete
the linefeeds in a correct way.

I'd like to keep the command structure as is; otherwise I'll have to
make a lot of changes. I could use a special character (fe |) to indicate
an end of line and scan for this character in the java program.


met vriendelijke groeten,
salutations sincères,
kind regards,

Geert Van Landeghem
Reynders Etiketten NV
tel: +32 3 460.32.81
gsm: +32 477.75.95.33
<mailto:gvl@reynders.com>

Line 1 \nLine 2 \nLine 3


-----Original Message-----
From: Dieter.Bender@t-online.de [mailto:Dieter.Bender@t-online.de]
Sent: donderdag 2 januari 2003 13:57
To: java400-l@midrange.com
Subject: Re: CR+LF?


Geert,

did you try to add "\n" in your text?

Dieter



Geert Van Landeghem schrieb:
> Best wishes for 2003 to everoyne!
>
> I've got a batch rpg program that calls qcmdexc to
> execute a sndemail2
> command we've written ourselves in java. The command
> accepts from, to,
> subject, ifs-file, ..., xml-file, xsl-file, ... and works
> without problem.
>
> Except that I want to generate linefeeds in the body of
> the text.
> I tried resolving the problem by adding X'10' and X'13'
> programmatically(RPG)
> in the TEXT field (see below) without success.
>
> Is there another solution than changing the TEXT
> parameter from char 1024
> to 10 fields of char 80 and adding the linefeed in the
> java program?
>
>
> TIA,
>
> met vriendelijke groeten,
> salutations sincères,
> kind regards,
>
> Geert Van Landeghem
> Reynders Etiketten NV
> tel: +32 3 460.32.81
> gsm: +32 477.75.95.33
> <mailto:gvl@reynders.com>
>
>
>
>
>
>                     Send e-mail with attachments
> (SNDEMAIL2)
>
>  Type choices, press Enter.
>
>                                   FROM         >
> GVL@REYNDERS.COM
>
>                                   TO           >
> GVL@REYNDERS.COM
>
>                            + for more values
>
>                                   BCC            *NONE
>
>                            + for more values
>
>                                   SUBJECT        *NONE
>
>                                   CONTENTS     > *TEXT
>
>                                   TEXT           Line1
> Line2 Line3
>
>
>   ...
>  XML-To-PDF Attachments:          XMLTOPDF
>    XML File . . . . . . . . . . .
>
>    XSL File . . . . . . . . . . .
>
>                            + for more values
>  File Attachments . . . . . . . . FILES
>
>                            + for more values
>
>
>
>
> _______________________________________________
> This is the Java Programming on and around the iSeries /
> AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
>
>
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




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.