Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using HTML in Emails and Newsletters


Goanna

Recommended Posts

Posted

Whenever I try and send out a newsletter using HTML, or an email, it never shows up correctly. I design them in Dreamweaver and copy all the HTML to the email or newsletter box in osCommerce, and it just never works right.

 

With the email, it sends it as plain text sometimes, or it translates the html but does so incorrectly, which makes it look erroneous when someone opens it.

 

The newsletters do support HTML but never look the way I want them to. When I click on the preview buttons, they are always messed up. It wont display a black background and white text, it will not keep sections together, all the tables get spaced far apart, etc. Just doesnt show up anything like it should.

 

Does anyone else have this problem? What can I do about it? Any help will be apreciated.

Posted

Instead of copying all of the HTML try copying only the HTML between the <BODY></BODY> tags.

 

If that doesn't work, post a sample of the problem HTML of the newsletter here.

 

Bob

 

Whenever I try and send out a newsletter using HTML, or an email, it never shows up correctly. I design them in Dreamweaver and copy all the HTML to the email or newsletter box in osCommerce, and it just never works right.

 

With the email, it sends it as plain text sometimes, or it translates the html but does so incorrectly, which makes it look erroneous when someone opens it.

 

The newsletters do support HTML but never look the way I want them to. When I click on the preview buttons, they are always messed up. It wont display a black background and white text, it will not keep sections together, all the tables get spaced far apart, etc. Just doesnt show up anything like it should.

 

Does anyone else have this problem? What can I do about it? Any help will be apreciated.

  • 6 months later...
Posted

I spoke too soon!

 

Just been searching (a little harder than the 1st time) and I found a solution.

 

View post, http://www.oscommerce.com/forums/index.php?showtopic=88746&hl=, about 3/4 of the way down.

 

I quote

your problem is being caused by the fact that osC translates line breaks into actual breaks in the text (with the nl2br function). to solve this, and to reduce the size of the emails you send out, get rid of spaces and line breaks. In this regard, the formatting of the code is not relevant. write it as you normally would, so you could follow your tables, fonts and what-nots, but before you copy-paste it, make all the code into one long line. This will solve your problem, and reduce the size of the mail - when you send it out to 1000 customers, every byte counts to your mail server!

 

This has solved it for me!

Thanks for any help/comments.

 

Regards,

 

Lewis Hill

Archived

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

×
×
  • Create New...