Skip to main content
Question

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

  • August 29, 2023
  • 4 replies
  • 89 views

JF_1010
Forum|alt.badge.img

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

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 29, 2023

Hi @JF_1010 

Good question.

Try just using this HTML:

Dear {{205625425__name}},
<br>

 


JF_1010
Forum|alt.badge.img
  • Author
  • Beginner
  • August 29, 2023

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.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 29, 2023

@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.


JF_1010
Forum|alt.badge.img
  • Author
  • Beginner
  • August 29, 2023

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