Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newletter HTML, appearance ...etc.


Recommended Posts

Is anyone aware of a simple fix so that we can edit the newsletter the same way we can edit the product info. I use Dreamweaver to make my product descriptions and simply paste the info in the descriptions.... looks great. If I do this in the newsletter box I get the html text for my newsletter.

 

I tried the contribution regarding WYSIWYG and it doesn't work for folks who have other modifications.

 

I just want to create a nice newsletter. Shame on OSC for leaving that option to the rest of us to try and fix! That should be standard....what's the point!

Good things take time..... Great things happen all at once!

Link to comment
Share on other sites

  • 2 weeks later...

If you are talking about the email you recieve when you send newsletters.

 

edit the newsletters.php file in catalog/admin/includes/modules/newsletters/

 

around line 65. look for $mimemessage->send.

 

I use

$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['cus

       tomers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this

       ->title, "MIME-Version: 1.0n" .  "Content-type: text/html; charset=iso-88

       59-1");

 

to make mine send out in HTML format.

 

I tried everything to change the $mimemessage - new (line 62) to use the MIME-Version: 1.0 n portion of my fix, but no luck.

Link to comment
Share on other sites

If you are formatting using HTML code it should work.

 

For instance you use a <br> for a line break.

 

A <p> with a </p> surroounding the paragraphs.

 

But I am sure you know this.

Link to comment
Share on other sites

Thanks for the quick response. I have all the appropriate HTML formatting and when I send the newsletter it shows up fine in the email I open up in Outlook Express, but in the one that I open up in my free Yahoo mail account all the html tags are visible. Yahoo says that's because the sender did not properly indicate that the message should be treated as html. Do you know where in the newsletter module I would make that indication?

Link to comment
Share on other sites

Not sure but take a look at line 62.

 

I think you might replace:

$mimemessage = new email(array('X-Mailer: osCommerce bulk mailer'));

with

$mimemessage = new email(array('Content-type: text/html'));

 

No way for me to test this, so it is just a guess.

Link to comment
Share on other sites

or

$mimemessage->add_text($message);

 

and change it to

 

$mimemessage->add_html($message);

 

this may be all you really need, taking out the other I gave you earlier.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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