Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 24 | Location: Baltimore, MD | Registered: April 30, 2019Report 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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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: 24 | Location: Baltimore, MD | Registered: April 30, 2019Report 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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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: 24 | Location: Baltimore, MD | Registered: April 30, 2019Report 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: 2127 | Location: Customer Support | Registered: April 12, 2005Report 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.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders