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



I have a little utility created for emailing spool files using Java mail, 
and I used the '0D25' hex code to "replace" the "~" in the message line. 
Basically, I use the ~ as a reference point for inserting the carriage 
return line feed.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill




"Edouard X Lanteigne" <edouard.lanteigne@xxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
20/06/2005 04:21 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
RE: Send e-mail from as/400 with java - Carriage return






OK, i have found it, i have to use this X'0D25'


Thanks.

Edouard Lanteigne
Abbott Laboratories (Canada), Systems Analyst
Tel: (514) 832-7124 Fax: (514) 832-7833
E-mail : edouard.lanteigne@xxxxxxxxxx
http://www.abbott.ca


This communication may contain information that is proprietary, 
confidential or exempt from disclosure. If you are not the intended 
recipient, please note that any dissemination, distribution, use or 
copying of this communication is strictly prohibited. Anyone who receives 
this message in error should notify the sender immediately by telephone or 

by return e-mail, and delete it from his or her computer.

Cette communication peut contenir des renseignements protégés, 
confidentiels ou soustraits à la divulgation en vertu de la loi. Si vous 
n'êtes pas le destinataire prévu, veuillez prendre note que la 
divulgation, la distribution ou la reproduction de cette communication 
sont strictement interdites. Si vous avez reçu cette communication par 
erreur, veuillez immédiatement en avertir l’expéditeur par téléphone ou 
par retour de ce courriel, et supprimer la communication de votre 
ordinateur.



"Edouard X Lanteigne" <edouard.lanteigne@xxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
06/20/2005 02:40 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
RE: Send e-mail from as/400 with java - Carriage return






I am using an RPG passing a string to a little java program... I assuming 
that i will have to use an Hex value like 0D0A but that seems to not work.

Thanks.

Edouard Lanteigne
Abbott Laboratories (Canada), Systems Analyst
Tel: (514) 832-7124 Fax: (514) 832-7833
E-mail : edouard.lanteigne@xxxxxxxxxx
http://www.abbott.ca


This communication may contain information that is proprietary, 
confidential or exempt from disclosure. If you are not the intended 
recipient, please note that any dissemination, distribution, use or 
copying of this communication is strictly prohibited. Anyone who receives 
this message in error should notify the sender immediately by telephone or 


by return e-mail, and delete it from his or her computer.

Cette communication peut contenir des renseignements protégés, 
confidentiels ou soustraits à la divulgation en vertu de la loi. Si vous 
n'êtes pas le destinataire prévu, veuillez prendre note que la 
divulgation, la distribution ou la reproduction de cette communication 
sont strictement interdites. Si vous avez reçu cette communication par 
erreur, veuillez immédiatement en avertir l’expéditeur par téléphone ou 
par retour de ce courriel, et supprimer la communication de votre 
ordinateur.



"albartell" <albartell@xxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
06/20/2005 02:33 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
"'Java Programming on and around the iSeries / AS400'" 
<java400-l@xxxxxxxxxxxx>
cc

Subject
RE: Send e-mail from as/400 with java - Carriage return






Are you using Java to compose the text to send the email, or are you just
using the JavaMail API's to send the email and are using something like 
RPG
or C to compose the email text?

If you are using Java to compose the text try using the escape character 
of
\n.  For example

String str = "Dear Alpo Dealers,\n We are pleased to announce the latest
flavor...\n Sincerely Yours,\n Alpo America.";

If the text for the email was being composed in another language on the
iSeries you would have to use the respective special character for that
language (or just use the hex values).

HTH,
Aaron Bartell



-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx 
[mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Edouard X Lanteigne
Sent: Monday, June 20, 2005 1:16 PM
To: Java Programming on and around the iSeries / AS400
Subject: Send e-mail from as/400 with java - Carriage return

Hi,

I would like to add a Carriage Return to an e-mail that i'm sending from 
the as/400

I am using javamail.

What should I use.

Thanks.

Edouard Lanteigne
Abbott Laboratories (Canada), Systems Analyst
Tel: (514) 832-7124 Fax: (514) 832-7833
E-mail : edouard.lanteigne@xxxxxxxxxx
http://www.abbott.ca


This communication may contain information that is proprietary, 
confidential or exempt from disclosure. If you are not the intended 
recipient, please note that any dissemination, distribution, use or 
copying of this communication is strictly prohibited. Anyone who receives 
this message in error should notify the sender immediately by telephone or 



by return e-mail, and delete it from his or her computer.

Cette communication peut contenir des renseignements protégés, 
confidentiels ou soustraits à la divulgation en vertu de la loi. Si vous 
n'êtes pas le destinataire prévu, veuillez prendre note que la 
divulgation, la distribution ou la reproduction de cette communication 
sont strictement interdites. Si vous avez reçu cette communication par 
erreur, veuillez immédiatement en avertir l’expéditeur par téléphone ou 
par retour de ce courriel, et supprimer la communication de votre 
ordinateur.



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.