Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML Newsletter help


Luna Arcana

Recommended Posts

Hi All

 

Newsletters are working well as far as sending to subscribed customers, the problem is I'm getting various "white-space" gaps in the emails depending on how I code the newsletter.

 

For example, simple html newsletter such as this has about 8-9 lines of blank space at the top of the email:

<html>

<head>

<title>Newsletter Test</title>

</head>

<body>

<table valign="top">

<tr>

<td colspan="3">Luna Arcana Test Newsletter in HTML</td>

</tr>

<tr>

<td><img src="http://www.lunaarcana.com/images/44234.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BHC-ENRG.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BK-JG.jpg"></td>

</tr>

</table>

</body>

</html>

 

or just this:

 

<table valign="top">

<tr>

<td colspan="3">Luna Arcana Test Newsletter in HTML</td>

</tr>

<tr>

<td><img src="http://www.lunaarcana.com/images/44234.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BHC-ENRG.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BK-JG.jpg"></td>

</tr>

</table>

 

 

I've also tried taking out the table tags, which aligns the body of the newsletter to the top, but also puts all three images on new lines essentially breaking the email apart the long way. Any suggestions on this would be appreciated, seems like the most confounding problems have the most "duh" solutions.

Link to comment
Share on other sites

  • 2 weeks later...

Hi Luna and Patto,

Not sure if this will help but try putting a zero margin on your page:

 

<html>

<head>

<title>Newsletter Test</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

<!--

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

-->

</style></head>

<body>

<table valign="top">

<tr>

<td colspan="3">Luna Arcana Test Newsletter in HTML</td>

</tr>

<tr>

<td><img src="http://www.lunaarcana.com/images/44234.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BHC-ENRG.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BK-JG.jpg"></td>

</tr>

</table>

</body>

</html>

 

 

That will hopefully force it to the top for you - works in general HTML pages but I haven't tried it through the OScommerce newsletter process.

 

best of luck

Donna

Link to comment
Share on other sites

I am having the exact same problem, its very annoying. Any assistance would be appreciated.

HTML MAILS by Jordi (Easy and working) contribution.

Link to comment
Share on other sites

Hi Luna and Patto,

Not sure if this will help but try putting a zero margin on your page:

 

<html>

<head>

<title>Newsletter Test</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

<!--

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

-->

</style></head>

<body>

<table valign="top">

<tr>

<td colspan="3">Luna Arcana Test Newsletter in HTML</td>

</tr>

<tr>

<td><img src="http://www.lunaarcana.com/images/44234.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BHC-ENRG.jpg"></td>

<td><img src="http://www.lunaarcana.com/images/BK-JG.jpg"></td>

</tr>

</table>

</body>

</html>

That will hopefully force it to the top for you - works in general HTML pages but I haven't tried it through the OScommerce newsletter process.

 

best of luck

Donna

Hi Donna, thank you for your post.

 

Unfortunately I have already tried that and it didn't work.

Link to comment
Share on other sites

  • 2 weeks later...
I am having the exact same problem, its very annoying. Any assistance would be appreciated.

 

i was having the same problem. after looking at the source code in newsletter preview, it became apparent oscommerce was adding it's own html.

 

oscommerce adds the following line-break tag after every line that you have forced to the next line in your editor.

<br />

 

the solution is simply to copy+paste your html into the newsletter body section as per normal, then strip all the white space out between sections of code. there are tools available on the net that do this for you if you want to speed up the process.

 

hope this helps!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...