Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'd like to use html, inserting images when sending out e-mails to customers through the admin.

 

Also special characters, like Ő ? ? ? ? ű and similar, but some comes out only as you see it here, too :roll:

 

Could anyone let me know how to do it? It would realyy help me a lot.

THANX

Cheers,

Susan

 

* * * * *

Find a way, or make one!

  • 2 weeks later...
Posted

Susan,

I tried looking for the same but no luck. Please let me know if you found any answers for the same

Thanks

Arpit

The late twentieth century has witnessed a remarkable growth in scientific interest in the subject of extinction

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

Arpit

Posted

Hey Caz,

works like a charm...thanks alot :P

The late twentieth century has witnessed a remarkable growth in scientific interest in the subject of extinction

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

Arpit

Posted

First download this contribution

 

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

 

Then open admin/mail.php

 

find <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

 

paste the following lines under this

 

<script language="Javascript1.2"><!-- // load htmlarea

_editor_url = ""; // URL to htmlarea files

var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);

if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }

if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }

if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }

if (win_ie_ver >= 5.5) {

document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');

document.write(' language="Javascript1.2"></scr' + 'ipt>');

} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }

// --></script>

 

Then find

 

<td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15'); ?>

</td>

 

And paste under this line

 

<script language="javascript1.2">editor_generate('message');

</script>

 

Then use the hack

 

$mimemessage->add_text($message);

 

and change it to

 

$mimemessage->add_html($message);

 

And youre done :)

 

You can do the same with newsletters.php

  • 8 months later...
Posted

Where are you sticking the:

 

<script language="javascript1.2">editor_generate('message');

</script>

 

part to get it working in newsletters.php?

 

I'm trying to figure it out, but the file looks pretty different from your mail.php example (which worked great - thanks!)

 

Silent Z

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...