Hi all,
I'm trying to send an email from within my Gentran:Server for Windows map
(Gentran version 5.0, patch 9) using Outlook in an object ADO call (user
exit).
The email is working just fine and I'm getting all my text I need in the
email body. But what I'm not getting are carriage returns and line feeds
in the data. As a result all the text is one long line and is difficult
to read.
I'm adding two defined string fields at the end of each text line in code
similar to what I've listed below (note: field "#MSGOUT" is a string set
to 30,000 characters and yes, I've added hex 0D and hex 0A to my syntax
token list for string type "X" data in the map)
#MSGOUT = "";
idx = idx - 1; // contains index for my string data array
//$INPUT.#CR is a 3 char string field set to use a constant hex 0D
//$INPUT.#LF is a 3 char string field set to use a constant hex 0A
while idy <= idx do
BEGIN
#MSGOUT = #MSGOUT + $LINE_DATA[idy].#DATA + $INPUT.#CR + $INPUT.#LF;
idy = idy+1;
END
oMail.Body = #MSGOUT;
oMail.Recipients.Add ("[EMAIL PROTECTED]"); //not the real email addr
oMail.Send();
oOutlook.Quit();
This sends the email and I'm getting all my text (string) data in the msg
body, but like I said, no CR/LF characters.
Any suggestions? Ideas? Other parameters I can use within my oMail calls?
Many thanks.
Richard Jones
...
Please use the following Message Identifiers as your subject prefix: <SALES>,
<JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC>
Job postings are welcome, but for job postings or requests for work: <JOBS> IS
REQUIRED in the subject line as a prefix.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/EDI-L/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/EDI-L/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/