Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter transforming HTML to HTML


belindamitchell

Recommended Posts

Posted

Basically, when I input html in a newsletter, it renders it properly in the preview, but it arrives in my inbox as html.

 

 

For example, if I send a link.

 

(this is how it looks in the preview)

Yahoo

(this is how it looks in my inbox)

<a href="http://www.yahoo.com">Yahoo</a> 

 

How do I stop this from happening? Basically, it's transforming the html to html. Thanks in advance for your help.

Do your part to make the world a pleasant place to live in. Buy fragrances!

Posted

is your mailbox set to receive html emails?

Posted
is your mailbox set to receive html emails?

 

Sorry for the delayed response! My email is set to receive HTML emails as a matter of fact, I get them from other companies all the time.

Do your part to make the world a pleasant place to live in. Buy fragrances!

Posted

I'm also having the same issue, any other ideas? I've searched the forums and tried other suggestions with none that work.

Posted
I'm also having the same issue, any other ideas? I've searched the forums and tried other suggestions with none that work.

 

 

look in mail.php or newsletter.php

 

I have a feeling there is a bit in there that notes Plain Text. Change this to HTML and your sorted

 

Skip

  • 2 weeks later...
Posted
look in mail.php or newsletter.php

 

I have a feeling there is a bit in there that notes Plain Text. Change this to HTML and your sorted

 

Skip

 

I finally found an answer to this issue and frankly I'm a little surprised that nobody responded with an answer, surely a lot of people here send out newsletters. Okay well here is the solution.

 

In the following files:

 

admin/mail.php

admin/includes/module/newsletters/newsletter.php

admin/includes/module/newsletters/product_notification.php

 

find

$mimemessage->add_text

change to

$mimemessage->add_html

 

Make the change in all three places and you can send html emails.

Do your part to make the world a pleasant place to live in. Buy fragrances!

  • 2 weeks later...
Posted

I have a problem with this also!.

 

I have done as told, Changed the 3 php's and it helped a little.

 

this is my newsletter:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#e8e7d6>
<TABLE 
style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" 
cellSpacing=0 cellPadding=10 width=600 border=0>
 <TBODY>
 <TR><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TR>
 <TR>
<TD bgColor=#ffffff>
  <P><B>Nyhedsbrev - November!</B> 
  <UL>
	<LI>Punkt 1 
	<LI>Punkt 2 
	<LI>Punkt 3 
	<LI>Punkt 4</LI></UL>
  <DIV>
  <HR>
  </DIV>
  <P><STRONG><EM>Punkt 1</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is 
  <P>
  <HR>

  <P><STRONG><EM>Punkt 2</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P></P>
  <P><STRONG><EM>Punkt 3</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P><STRONG><EM>Punkt 4</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P></P>
  <DIV><STRONG><EM>Mvh.</EM></STRONG></DIV>
  <DIV><STRONG><EM></EM></STRONG></DIV>
  <DIV><STRONG><EM>- Team Fatima</EM></STRONG></DIV>
  <DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

 

And everything is working axcept these to parts:

 

 <TR><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TR>

 

And:

 

style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" 
cellSpacing=0 cellPadding=10 width=600 border=0>

 

i am not an exepert in html or CSS, most of the thing seen above is downright stolen from other places. so if the answer is obvious i apoligise :)

 

anyone know how i can fix this?

Posted
I have a problem with this also!.

 

I have done as told, Changed the 3 php's and it helped a little.

 

this is my newsletter:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#e8e7d6>
<TABLE 
style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" 
cellSpacing=0 cellPadding=10 width=600 border=0>
 <TBODY>
 <TR><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TR>
 <TR>
<TD bgColor=#ffffff>
  <P><B>Nyhedsbrev - November!</B> 
  <UL>
	<LI>Punkt 1 
	<LI>Punkt 2 
	<LI>Punkt 3 
	<LI>Punkt 4</LI></UL>
  <DIV>
  <HR>
  </DIV>
  <P><STRONG><EM>Punkt 1</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is 
  <P>
  <HR>

  <P><STRONG><EM>Punkt 2</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P></P>
  <P><STRONG><EM>Punkt 3</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P><STRONG><EM>Punkt 4</EM></STRONG> 
  <P>Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva 
  sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem 
  Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is Lorem Ipsum ilva sempsi is 
  Lorem Ipsum ilva sempsi is v Lorem Ipsum ilva sempsi is</P>
  <P>
  <HR>

  <P></P>
  <DIV><STRONG><EM>Mvh.</EM></STRONG></DIV>
  <DIV><STRONG><EM></EM></STRONG></DIV>
  <DIV><STRONG><EM>- Team Fatima</EM></STRONG></DIV>
  <DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

 

And everything is working axcept these to parts:

 

 <TR><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TR>

 

And:

 

style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" 
cellSpacing=0 cellPadding=10 width=600 border=0>

 

i am not an exepert in html or CSS, most of the thing seen above is downright stolen from other places. so if the answer is obvious i apoligise :)

 

anyone know how i can fix this?

 

Something to keep in mind, when you are talking about sending html emails you have to remember that almost all mail servers will handle and display your code in very different ways. I would suggest you go to http://www.mailchimp.com/resources/ and have a read through.

 

 

as for

 

 <TR><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TR>

 

try this

 

 <TR><TD><A href="http://www.fatima.dk"><IMG height=60 
src="http://www.fatima.dk/osc/images/banner.jpg" width=600 border=0></A></TD></TR>

 

and remember not all mail providers support all the css codes, and you should to add alt text to your images because most servers have images turned off by default.

Archived

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

×
×
  • Create New...