Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] EDAMAIL Carriage Returns
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] EDAMAIL Carriage Returns
 Login/Join
 
Member
posted
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
 
Posts: 20 | Location: Baltimore, MD | Registered: April 30, 2019Reply With QuoteReport This Post
Master
posted Hide Post
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
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 497 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 20 | Location: Baltimore, MD | Registered: April 30, 2019Reply With QuoteReport This Post
Master
posted Hide Post
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
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 497 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 20 | Location: Baltimore, MD | Registered: April 30, 2019Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1699 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Look at this doc and the last text line regarding "message=body message"

The explanation may be there
EDAMAIL


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2241 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5617 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Master
posted Hide Post

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
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 497 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] EDAMAIL Carriage Returns

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.