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.
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
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
April 12, 2016, 09:46 AM
Jay Potter
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
April 12, 2016, 04:19 PM
Tom Flynn
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
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
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.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
April 13, 2016, 10:17 AM
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
WebFOCUS 8105m Windows 7, All Outputs
Member of the Benelux Usergroup
April 13, 2016, 11:28 AM
Jay Potter
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
April 14, 2016, 11:30 AM
Chad Miller
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
April 04, 2017, 12:30 PM
airflight
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.