How to set the text in mail body to be in red color as html body

Dear all,

I am currently assigned my mail body and use html code to construct the mail body.

But i am not sure how to make the text to be in red color.

i tried to use <p style=color:red;"> but it will show error like constant only can have one, or end of expression is expected.

And then how can we set it to be aligned as per below for the paragraph?
Invoice No. : TBA
DI No : KL-2102-106
Do No : 81552253
Delivery To : ABC
ETA Date : 08.02.2021

Sorry to trouble you all as i dont have any experience in programming at all.

so, please help me on this.

Thank you.

Hi @irene0227,

Please try this code below:

mailBody.txt (141 Bytes)

Please check this option in properties IsBodyHtml

Thanks!

@irene0227 Please use below tags in your email body.


Replace your text in place of warning…
Also Please check IsBodyHtml in properties panel of Send Outlook mail message.

Hope this helps.

Regards,
ninadv99

@ninadv99 thanks …now i am able to get the text in red color.

@kadiravan_kalidoss Thanks for your reply.

But actually what i want is i need the below info to be show as per below:

Invoice No. : TBA
DI No : KL-2102-106
DO No. : 81552253
Delivery to : ABC
ETA Date : 08.02.2021

currently i only manage to get this
Invoice No. : TBA
DI No : KL-2102-106
Do No : 81552253
Delivery To : ABC
ETA Date : 08.02.2021

Use the Table tag

1 Like

@ManiPrajwal_K , can you share the html tag/code on how to use it?

Really appreciate.

Thank you.

hi @irene0227 …You can use any online HTML editor like this Online HTML Editor - 𝗛𝗧𝗠𝗟-𝗢𝗻𝗹𝗶𝗻𝗲.𝗰𝗼𝗺

after editing copy paste the code simply.

Sure… Here you go for the starter:

<table style="border: 1px solid black; border-collapse: collapse">
  <tr>
  	<th>Invoice No.</th>
    <th>:</th>
    <th>TBA</th>
  </tr>
  <tr>
  	<td>DI No</td>
    <td>:</td>
    <td>KL-2102-106</td>
  </tr>
  <tr>
  	<td>DO No.</td>
    <td>:</td>
    <td>81552253</td>
  </tr>
   <tr>
  	<td>Delivery to.</td>
    <td>:</td>
    <td>ABC</td>
  </tr>
    <tr>
  	<td>ETA Date</td>
    <td>:</td>
    <td>08.02.2021</td>
  </tr>
</table>

O/P

Invoice No. : TBA
DI No : KL-2102-106
DO No. : 81552253
Delivery to. : ABC
ETA Date : 08.02.2021

Hope this can help you and you can add some CSS properties as well like Padding and Alignment according to your requirement.