Jump to content
Sign in to follow this  
Aqua121

Using HTML and special characters in e-mail

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

http://forums.oscommerce.com/viewtopic.php...ght=html+emails

 

specifically from Steve:

To allow HTML to pass through the admin section of the newsletter in version 2.2. Do the following -

 

in the mail.php file in the admin section look for

 

$mimemessage->add_text($message);

 

and change it to

 

$mimemessage->add_html($message);

 

worked for me :D


-caz

-----------

... trying to prove that I am a Believer :)

-----------

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


"Grrrr! It's time this installation tasted Boomstick..."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×