View previous topic :: View next topic
|
Author |
Message |
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
Hi,
I am automatically generating an EMAIL. My request is that in the mail content i need to bold some sentence.
for e.g. the content is
Todays defect
Cycle date: 04/11/2007
Defect identified: 044345
Defect identified: 664533
The output should be
Todays defect
Cycle date: 04/11/2007
Defect identified: 044345
Defect identified: 664533
Th date(04/11/2007) and 'Defect identified' shoud be bold.
The content is present in different data set. cycle date is in one and next two lines in another. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Unless you generate your email as HTML or RTF, I think you can't change a dataset content/caracteristics.
O. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
ayappan,
Yes, as pointed out by ofer you need to generate the EMAIL as HTML.
You need to add HTML tags in the required places in the dataset and then attach it as an HTML.
BTW, which utility are you using for generating e-mails? |
|
Back to top |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
I am executing one module to generate the email step.
How will I code in HTML? Just give me an example.... |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
ayappan,
Quote: |
How will I code in HTML? Just give me an example.... |
Try this if you are familiar with REXX. Say you have a dataset A to be mailed. You will have to do the following.
1) Read the dataset A into a stem variable.
2) Add all the required HTML tags in the dataset by adding suitable logic.
After adding the tags your dataset should look like this.
Code: |
<html>
<body>
<para>
Todays defect <br>
Cycle date: <b> 04/11/2007 </b> <br>
<b>Defect identified: </b> 044345<br>
<b>Defect identified: </b> 664533 <br>
</para>
</body>
</html>
|
Attach this new dataset (after adding these tage) as a HTML file in the email JCL so that the report would be emailed as a HTML file. |
|
Back to top |
|
|
|