Focal Point
[SOLVED] EDAMAIL Carriage Returns

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5767089196

November 13, 2019, 01:21 PM
Jay Ervin
[SOLVED] EDAMAIL Carriage Returns
Hello!

I am attempting to add carriage returns into the body of an EDAMAIL email, but falling flat because of the single attachment limit. Has anybody found a solution to formatting the email body without attaching it as an HTM? The below code runs, but it lumps all three lines of message onto a single line:

EX -lines 9 EDAMAIL 
TOADDR=jervin@customsoftwaresystems.com,
SUBJECT=Test Email, 
FLAGS=A, 
FILETYPE=PDF, 
FILENAME= &APPPATH/&FILENAME, 
MESSAGE=Hello,

File attached.

Thanks.


I've made all sorts of attempts with CNTRCHAR, CTRAN, STRREP, and so on, so I appreciate any new approaches that I may have overlooked.

Thanks!
Jay

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1/8.2, Windows 10/Server 2012
November 13, 2019, 09:23 PM
Hallway
Maybe try the new line character \n at the end of each line.
  
EX -lines 9 EDAMAIL 
TOADDR=jervin@customsoftwaresystems.com,
SUBJECT=Test Email, 
FLAGS=A, 
FILETYPE=PDF, 
FILENAME= &APPPATH/&FILENAME, 
MESSAGE=Hello,\n
\n
File attached.\n
\n
Thanks.



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
November 14, 2019, 09:05 AM
Jay Ervin
quote:
Originally posted by Hallway:
Maybe try the new line character \n at the end of each line.
  
EX -lines 9 EDAMAIL 
TOADDR=jervin@customsoftwaresystems.com,
SUBJECT=Test Email, 
FLAGS=A, 
FILETYPE=PDF, 
FILENAME= &APPPATH/&FILENAME, 
MESSAGE=Hello,\n
\n
File attached.\n
\n
Thanks.


No luck, didn't work either. But thank you for the suggestion, I hadn't seen that idea previously!


WebFOCUS 8.1/8.2, Windows 10/Server 2012
November 14, 2019, 10:48 AM
Hallway
Our EDAMAIL is not set up, so I cannot test this on my end. That said, here's another stab in the dark. What about using the html tag <br>


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
November 14, 2019, 03:48 PM
Jay Ervin
quote:
Originally posted by Hallway:
Our EDAMAIL is not set up, so I cannot test this on my end. That said, here's another stab in the dark. What about using the html tag


Another good thought, but nope. It doesn't recognize html tags as such, and just types them out into the body.


WebFOCUS 8.1/8.2, Windows 10/Server 2012
November 14, 2019, 06:16 PM
FP Mod Chuck
Jay

Sounds like its time to open a case with techsupport...


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
November 15, 2019, 07:49 AM
MartinY
Look at this doc and the last text line regarding "message=body message"

The explanation may be there
EDAMAIL


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 15, 2019, 08:11 AM
Tony A
As Martin suggests, the answer is in the document.

The following is from the 8.1.05 doc

message=body message
Is the inline data stream containing the email message body. If used, it must be the last parameter in the EDAMAIL command. To use the inline data stream feature, the filetype and filename parameters cannot be supplied. The data stream may also be spread onto multiple lines if EDAMAIL is used with the EX -LINES {n|*} feature.

If an inline data stream message body is spread across multiple lines in the procedure, the resulting email is a single line of output. Multi-line message bodies are respected when the message body from a file option is used.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 15, 2019, 12:45 PM
Hallway

So, in reading the docs, one would think that it is indeed possible to send a multi-line email message. Of course in typical IBI Document fashion, the example that is given is EXTREMELY vague. It uses undefined parameters so we have no idea how to actually do this


Example: Mailing a Multi-line Inline Message
...
EX -LINES * EDAMAIL user1@corp1.com, user2@corp1.com, &SUBJECT,,, 
Run result for &TESTNAME is:
&RESULT
EDAMAIL*


Any ideas TonyA?
🤔

This message has been edited. Last edited by: Hallway,


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs: