Question

Outbound Email, HTML Formatting, the "Dear..." is moved down in the email body

  • 29 August 2023
  • 4 replies
  • 50 views

Userlevel 1
Badge

Hi,

I am using this HTML code shown below in trying to set up a Welcome Email, but not matter what I do, it is leaving a large space before the “Dear...” As if all this code is in the email body, but just not visible.

Someone helped me write this code, and I’m not sure why I’m having a problem.  Any help would be greatly appreciated.  Thanks.

 

<!DOCTYPE html>
<html>
<head>
<style>
@media only screen and (max-width: 600px) {
    .bodyClass {
        font-size: 18px; /* Adjust font size for mobile */
    }
}
</style>
</head>
<body style="font-size: 20px;" class="bodyClass">

<p style="text-align: justify; margin-right: 50px; margin: 0; padding: 0;" class="pClass">Dear {{205625425__name}},</p>


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

Hi @JF_1010 

Good question.

Try just using this HTML:

Dear {{205625425__name}},
<br>

 

Userlevel 1
Badge

Do you mean remove all the other code and just have the HTML you posted? If so, I’m confused...is the code I pasted not doing anything, just not sure why it is causing issues.

Userlevel 7
Badge +14

@JF_1010

Try doing some GSearches for tools that help generate the HTML for the body of an email.

Try asking ChatGPT to help write the HTML for the body of an email.

Userlevel 1
Badge

I think the issue was that the “Force Linebreak” setting was set to “True”

 

It appears as though this has to be set to “False” when using HTML