Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I think I've tried everything i can think of for this problem.......but there must be something else!

 

When I did a test newsletter in dreamweaver and then copied and pasted the code into the newsletter content box, it all worked a treat for previewing etc, but when the newsletter was sent out it only came through showing the original source code!

 

I've tried various 'email options' and even using a WISYWIG editor, still no joy......

 

is there any special code in need to include into the html etc, or anything i need to do in general?

 

any help greatly recieved....

 

a very frustrated person.....

 

Clare

Posted
Hi,

 

I think I've tried everything i can think of for this problem.......but there must be something else!

 

When I did a test newsletter in dreamweaver and then copied and pasted the code into the newsletter content box, it all worked a treat for previewing etc, but when the newsletter was sent out it only came through showing the original source code!

 

I've tried various 'email options' and even using a WISYWIG editor, still no joy......

 

is there any special code in need to include into the html etc, or anything i need to do in general?

 

any help greatly recieved....

 

a very frustrated person.....

 

Clare

Clare, when using Dreamweaver or any other WYSIWYG type HTML editor, did you be sure to only copy the code between the <BODY> tags and leave everything else out? Paste the HTML from inbetween the body tags into the newsletter box in the admin and it should work fine for you.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted
Clare, when using Dreamweaver or any other WYSIWYG type HTML editor, did you be sure to only copy the code between the <BODY> tags and leave everything else out? Paste the HTML from inbetween the body tags into the newsletter box in the admin and it should work fine for you.

 

Hi Bill,

 

many thanks for your reply, I have done what you sugested and it still doesnt work! I also tried putting <html></html> tags in and that didnt work either! Still displays perfectly when I preview it though!

  • 2 months later...
Posted

Clare,

 

Did you ever find a fix for this. I'm having the same problem with html in the newsletter.

 

Thanks

  • 2 weeks later...
Posted

I am also trying to put together html newsletter!

 

 

Found this in my search:

 

To render in html apply the following to (approx) line 63 of admin/includes/modules/newsletter/newsletter.php

 

$mimemessage->add_html($this->content); //instead of add_text, which is the default

 

 

Problem I now have is where do I store and how to reference the images? I have tried a variety but still getting red crosses?

 

Many thanks :'(

Posted (edited)

This may help

 

http://www.oscommerce.com/community/contributions,1347

 

 

Edited below.

 

Oops, seems it is outdated!

 

 

I am also trying to put together html newsletter!

 

 

Found this in my search:

 

To render in html apply the following to (approx) line 63 of admin/includes/modules/newsletter/newsletter.php

 

$mimemessage->add_html($this->content); //instead of add_text, which is the default

 

 

Problem I now have is where do I store and how to reference the images? I have tried a variety but still getting red crosses?

 

Many thanks :'(

Edited by usernamenone
Posted
Problem I now have is where do I store and how to reference the images? I have tried a variety but still getting red crosses?

 

you should upload your images manually to catalog images folder (/catalog/images/)

and edit image src tags accordingly (ie <img src="http://domain.com/catalog/images/xxx.jpg"> )

Sugiartha

------------------------------------------

concept of life: enjoy aja!

  • 4 years later...
Posted

I changed the settings add_html. I pasted a simple template but even in the preview it does not render correctly. anyone can help?

 

I pasted the following in my text

 

<table width="620" height="173" border="3">

<tr>

<th width="215" height="234

" scope="col"><img src="http://gezondheidshoek.be/images/depurativonieuwsbrief.jpg"></th>

<th width="413" scope="col"><p class="style5"><span class="style7">De periode tussen de zomervakantie is het ideale moment om de extra kilo's te verliezen en met een slank figuur naar eindejaarsfeesten te gaan. Bovendien is het een geschikt moment om een zuiveringskuur te volgen.</span></p>

<p class="style5"><a href="http://gezondheidshoek.be/Dieetsupplementen/Depuritivo-500-ml---Dieet" title="Zuivering lever">Depurativo</a> kan niet alleen gebruikt worden om de afvalstoffen opgeslagen in ons vet te verwijderen bij een proteine dieet maar kan ook gebruikt worden bij een zuiveringskuur van de lever </p></th></tr>

</table>

 

<table width="620" height="122" border="3">

<tr>

<th width="203" height="118" bgcolor="#FFFF00" scope="col"><span class="style3">-50%</span></th>

<th width="397" scope="col"><p>Tijdens de maand oktober krijgt u een 2 pakketjes brood voor de prijs van 1 zolang de voorraad strekt.

</p>

<p><a href="http://gezondheidshoek.be/Dieet-brood/Proteine-Brood---2-sneetjes" title="Proteine brood" target="_blank">Bestel Proteine Brood </a></p> <p class="style5"> </p>

</th></tr>

</table>

Posted

Set the email up as a simple html webpage and view it a browser. That way what you see is what the email recipient will see. Html emails are webpages. For example I have my newsletters in a folder on my catalog level. I build them on the web first and then copy and paste them into the newsletter manager. Copy and paste from the browser source and you cut out the web editor and what ever issue that may be causing.

 

That way I can include a link to that webpage in the email ( the little lines that read 'if you cannot view this correctly etc') Previewing it in the oscommerce admin, or on your computer as a web editor renders it may or may not be accurate.

 

You can include html tags, header tags, title tags, etc in a email without issue. The next time you get an nice html email from some company, view the source, or better yet copy and paste the source into a new blank page on your website. You'll see the email on the web on your website exactly like it appears in your email. Some have the html tags, even the css in a header and some don't. (some contain odd line breaks so you may have to remove them first)

 

The oscommerce off the shelf newsetter manager works just fine to send html newsletters. It sounds like you already know how to configure the admin to send html. If you are using a wysisyg on the newsletter be sure you have that set to html as well.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...