SMTP Email formatting question

Djou2424Djou2424 Member Posts: 76
I'm trying to format the body of an html email using codeunit 400, AppendBody function to add TAB between variables

The body should look like this:
A1 B1 C1
A2 B2 C2
A3 B3 C3

But instead, it looks like
A1 B1 C1
A2 B2 C2
A3 B3 C3

No matter what I do, it only put a space between the variable, no tab.
I tried by adding it like A + ' ' + B + ' ' + C

or setting a char variable
TABchar := 9;
A + format(TABchar) + B + format(TABchar) + C

What am I doing wrong?

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Djou2424 wrote:
    The body should look like this:
    A1 B1 C1
    A2 B2 C2
    A3 B3 C3

    But instead, it looks like
    A1 B1 C1
    A2 B2 C2
    A3 B3 C3
    Looks the same to me.

    If you send a html-mail, why don't you use html-code to format the body of your mail?

    You can write:
    <table>
      <tr>
        <td>row 1, col1</td>
        <td>row 1, col 2</td>
      </tr>
      <tr>
        <td>row 2, col1</td>
        <td>row 2, col 2</td>
      </tr>
    </table>
    
    to have a table-structure. See http://www.w3schools.com/html/html_tables.asp for more info about the table-tags.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Djou2424Djou2424 Member Posts: 76
    Thank you very much :D
Sign In or Register to comment.