Skip to main content
Answer

RTL in mail automation

  • December 12, 2022
  • 7 replies
  • 100 views

Forum|alt.badge.img+3

Hi, 

I want to send emails to my customers using the Gmail automation and I was wondering if I can somehow change the direction of the text to RTL (the mails are in Hebrew)

Best answer by TheTimeSavingCo

Actually, it only works for the first line of text, how do I implement it for the whole text?


Hm, for new lines I believe you can use `<br>`s for the new lines like so:

<p style="direction:rtl">Test Hello.<br>On a new line<br><br>Two new lines later</p>

Which would result in this:

7 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Hi Hilla, you can use some HTML and CSS to get your text right aligned I believe

For example:


And the code I used in the screenshot above was `<h1 style="text-align:right">Test Hello</h1>`

For normal email body text, you could try using: <p style="text-align:right">Test Hello</p>

 


Forum|alt.badge.img+3
  • Author
  • New Participant
  • December 12, 2022

Hi Hilla, you can use some HTML and CSS to get your text right aligned I believe

For example:


And the code I used in the screenshot above was `<h1 style="text-align:right">Test Hello</h1>`

For normal email body text, you could try using: <p style="text-align:right">Test Hello</p>

 


Thx! this however does not solve the problem since it only aligns the text to the right and doesn't change the direction of the punctuation


TheTimeSavingCo
Forum|alt.badge.img+31

Thx! this however does not solve the problem since it only aligns the text to the right and doesn't change the direction of the punctuation


Ah, so sorry.  Hmm, what about `<h1 style="direction:rtl">Test Hello</h1>`?


Forum|alt.badge.img+3
  • Author
  • New Participant
  • December 12, 2022

Ah, so sorry.  Hmm, what about `<h1 style="direction:rtl">Test Hello</h1>`?


It works but only if I don't add data variables from the base 😕😕


Forum|alt.badge.img+3
  • Author
  • New Participant
  • December 12, 2022

It works but only if I don't add data variables from the base 😕😕


Actually, it only works for the first line of text, how do I implement it for the whole text?


TheTimeSavingCo
Forum|alt.badge.img+31

Actually, it only works for the first line of text, how do I implement it for the whole text?


Hm, for new lines I believe you can use `<br>`s for the new lines like so:

<p style="direction:rtl">Test Hello.<br>On a new line<br><br>Two new lines later</p>

Which would result in this:


Forum|alt.badge.img+3
  • Author
  • New Participant
  • December 13, 2022

It works!!!

Thank you soooooo much!!