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     [CASE-OPENED]multi line edamail

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED]multi line edamail
 Login/Join
 
Guru
posted
I am trying to create an email via edamqail that displays multiple lines in the body. I have looked at different examples on focalpoint tried to modify them. At first I thought the -lines was allowing the body to have multple lines, but it looks like it allows multple lines of code. Below is one of the examples I was working with.
 
-*-MRNOEDIT EX -lines 5 EDAMAIL to=Jay Potter,toaddr=jpotter@EnclaraPharmacia.com, from=jpotter@EnclaraPharmacia.com,subject=jay testing, message=testing email ,
-* line2 ,
-* line3 ,
-* line4  ,
-* line5  ,

 


I would like the body of the email to look like this.

testing email
line2
line3
line4
line5
 
I have tried to put <html><body><a>Test</a></body><html> in the code also. Can I use html tags to change the fonts?
 

After trying other scenarios that all display the body in one single line, I wonder if it is a setting that I need to change.

This message has been edited. Last edited by: <Emily McAllister>,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Virtuoso
posted Hide Post
Here


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Guru
posted Hide Post
Thanks

I tried that code and it put the body all as one line wrapped.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Expert
posted Hide Post
Here's the easy way:
  
-SET &ECHO=ALL;
-SET &TEXT        = 'EDAMAIL Test';
-SET &LEAD_NAME   = 'tflynn13';
-SET &OUT_FILE    = &LEAD_NAME || '_Testing_EDAMAIL';

-* Separate target multiple EMAIL's here

-SET &EMAIL_TO_FR = 'tflynn13@your_domain.com' || ',' | 'tflynn_in_va@your_domain.com';
SET PAGE-NUM = OFF
TABLE FILE IBISAMP/CAR
HEADING
"This is Line 1"
"This is Line 2"
"This is Line 3"
"This is Line 4"
"This is Line 5"
" "
PRINT
     MODEL
   BY COUNTRY
   BY CAR
 ON TABLE HOLD AS '&OUT_FILE.EVAL' FORMAT HTML
ON TABLE SET STYLE *
TYPE=TITLE, STYLE=BOLD+UNDERLINE, SIZE=9, FONT=ARIAL,$
ENDSTYLE
END
-RUN
EX EDAMAIL &EMAIL_TO_FR,&TEXT,B,HTML,&OUT_FILE
-RUN


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
Thanks for replying.

One of the issues is that I have an attachment. So technically it says you can't have a inline body with an attachment. But I am trying to get around it. There has been suggestions to insert HTML tags, but my emails go out as plain text instead of HTML. I have IBI support looking into it.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Expert
posted Hide Post
OK, Please let us know...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
In my last job we had a perl script to send the emails, and it supported what ever you wanted.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Jay, use the following:

-SET &CRLF = HEXBYT(13,'A1')|HEXBYT(10,'A1');
-SET &ERSAND='&';
-SET &LINEBREAK=&ERSAND||'CRLF.EVAL';

-WRITE TEXT NOCLOSE &INPUT &CRLF.EVAL
-CLOSE TEXT


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Guru
posted Hide Post
Thanks for your suggestion. I have tried different variations making a parameter equal to something and adding that parameter into the message section of the edamail command. Whatever I try to insert displays on a single line. (/n/r, /t/t, /r/n,
,
....)

When I entered your code it didn't display anything after where the code would have been. As if it was an error without displaying an error.

Thanks everyone for all your suggestions. Hopefully support will be able to figure it out. I will let you know.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Member
posted Hide Post
I have achieved something similar by creating an html page and saving it to a directory, and then including that file in the email. So the message text is in the .htm file. Not sure how your email server will handle this, but ours puts the .htm file inline in the email.

 EX EDAMAIL  receiveremail@email.com, senderemail@email.com, SUBJECT,,HTML, file.htm 


WebFOCUS 8105
Windows, All Outputs
 
Posts: 22 | Registered: May 14, 2015Report This Post
Member
posted Hide Post
quote:
Originally posted by SWES:
Jay, use the following:

-SET &CRLF = HEXBYT(13,'A1')|HEXBYT(10,'A1');
-SET &ERSAND='&';
-SET &LINEBREAK=&ERSAND||'CRLF.EVAL';

-WRITE TEXT NOCLOSE &INPUT &CRLF.EVAL
-CLOSE TEXT


Hi SWES,
Sorry, I am very new to WebFocus. Can you give me a working example of this? I got the email working with attachment with inline body message (Not HTML). I just need to have a multi lines messages to show up.


WebFOCUS 8
Windows, All Outputs
 
Posts: 1 | Registered: March 31, 2017Report 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     [CASE-OPENED]multi line edamail

Copyright © 1996-2020 Information Builders