Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
error

We made a wrong turn. Try again.

Hi

i'm using email templates to receive mail but seems the format is not the same as in template when the mail is recievied:

 

<messaging:emailTemplate subject="Your campaign {!relatedTo.Name} is due to start" recipientType="User" relatedToType="Campaign">

<messaging:htmlEmailBody >

<html>

<head>

<style>

⌗header {

position: relative;

background-color:white;

left: 100px;

width:60%;

float:left;

margin-bottom:5px;

padding:5px;

}

⌗body {

position: relative;

left: 100px;

background-color:white;

height:250px;

width:60%;

float:left;

padding:5px;

}

</style>

</head>

<body bgcolor="⌗00A1C1">

<div>

<div id ="header">

<img src="NEC_Logo" alt="logo"></img>

</div>

<div id ="body">

Dear {!recipient.name}

<br></br>

<br>

Notification that "{!relatedTo.Name}" is due to start today.

</br>

</div>

</div>

</body>

</html>

</messaging:htmlEmailBody>

</messaging:emailTemplate>

Any input on how to make it consistent with the template please?
1 answer
  1. Nov 16, 2015, 4:23 PM
    Styling in mail templates is very inconsistent. One problem is your style tags. I know for a fact Gmail doesn't support that so you have to use inline styling. I'm not sure about the other services but I know the markup/styling is not consistent across them. I would say, remove the <style></style> tags and move the styling inline and experiment with the different mail services to get it looking consistent throughout. Good luck!
0/9000